Skip to content

Commit 91856f7

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

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/update-website.yml

Lines changed: 10 additions & 7 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,19 +20,21 @@ 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
26+
token: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
2627
- name: pip install
2728
run: |
2829
which python3
2930
python3 --version
3031
python3 -m pip install -r requirements-dev.txt
3132
- name: Update docs
3233
run: |
33-
git config user.name emscripten-bot
34-
git config user.email [email protected]
35-
./bootstrap
34+
set -o errexit
35+
set -o xtrace
36+
git config --global user.name emscripten-bot
37+
git config --global user.email [email protected]
3638
if ./tools/maint/update_docs.py; then
3739
echo "rebaseline_tests returned zero, expectations up-to-date"
3840
# Exit early and don't create a PR
@@ -46,6 +48,7 @@ jobs:
4648
fi
4749
# Create a PR against the emscripten-site repo
4850
cd site/emscripten-site
51+
gh auth status
4952
git push origin update
50-
gh pr create --fill --base gh-pages --reviewer sbc100,kripken
51-
gh pr merge --squash --auto
53+
gh pr create --fill --head update --base gh-pages
54+
#gh pr merge --squash --auto

0 commit comments

Comments
 (0)