Skip to content

Commit b817d0d

Browse files
authored
Merge pull request #10 from PIsberg/fix-demo-gif-commit
ci: commit demo GIF directly to main instead of opening a PR
2 parents f6a0ee4 + 3a6627e commit b817d0d

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

‎.github/workflows/demo.yml‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
--speed 1.2 \
6262
--idle-time-limit 3
6363
64-
- name: Commit GIF via PR
64+
- name: Commit GIF directly to main
6565
env:
6666
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6767
run: |
@@ -72,13 +72,5 @@ jobs:
7272
echo "GIF unchanged — nothing to commit."
7373
exit 0
7474
fi
75-
BRANCH="chore/update-demo-gif-$(date +%Y%m%d-%H%M%S)"
76-
git checkout -b "$BRANCH"
7775
git commit -m "chore: regenerate demo GIF"
78-
git push origin "$BRANCH"
79-
gh pr create \
80-
--base main \
81-
--head "$BRANCH" \
82-
--title "chore: regenerate demo GIF" \
83-
--body "Auto-generated by the [demo workflow](../actions/workflows/demo.yml). Merges the updated \`docs/demo.gif\` and \`docs/bashful-demo.cast\`." \
84-
--label "documentation" || true
76+
git push origin HEAD:main

0 commit comments

Comments
 (0)