Skip to content

Commit ef7d713

Browse files
committed
[CI] Attempt to fix update-website.yml
1 parent a7accd3 commit ef7d713

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/update-website.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Update website
1111
runs-on: ubuntu-latest
1212
env:
13-
GH_TOKEN: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
13+
GITHUB_TOKEN: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
1414
steps:
1515
- name: Checkout repo
1616
uses: actions/checkout@v4
@@ -20,7 +20,7 @@ jobs:
2020
- name: Checkout website repo
2121
uses: actions/checkout@v4
2222
with:
23-
repository: kripken/emscripten-site
23+
repository: emscripten-bot/emscripten-site
2424
ref: gh-pages
2525
path: site/emscripten-site
2626
- name: pip install
@@ -30,9 +30,10 @@ jobs:
3030
python3 -m pip install -r requirements-dev.txt
3131
- name: Update docs
3232
run: |
33-
git config user.name emscripten-bot
34-
git config user.email [email protected]
35-
./bootstrap
33+
set -o errexit
34+
set -o xtrace
35+
git config --global user.name emscripten-bot
36+
git config --global user.email [email protected]
3637
if ./tools/maint/update_docs.py; then
3738
echo "rebaseline_tests returned zero, expectations up-to-date"
3839
# Exit early and don't create a PR
@@ -46,6 +47,7 @@ jobs:
4647
fi
4748
# Create a PR against the emscripten-site repo
4849
cd site/emscripten-site
50+
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
4951
git push origin update
50-
gh pr create --fill --base gh-pages --reviewer sbc100,kripken
52+
gh pr create --fill --head update --base gh-pages
5153
gh pr merge --squash --auto

0 commit comments

Comments
 (0)