Preview Commit to PR fix

This commit is contained in:
Chris Titus 2024-11-01 13:36:23 -05:00
parent d4eacaeab3
commit 6eba207f27

View File

@ -46,10 +46,16 @@ jobs:
- name: Move preview - name: Move preview
run: mv preview.gif docs/assets/preview.gif run: mv preview.gif docs/assets/preview.gif
- name: Upload preview - name: Create Pull Request
uses: stefanzweifel/git-auto-commit-action@v5 uses: peter-evans/create-pull-request@v6
with: with:
commit_message: Preview for ${{ env.run_id }} token: ${{ secrets.GITHUB_TOKEN }}
file_pattern: "docs/assets/preview.gif" commit-message: Preview for ${{ env.run_id }}
add_options: "--force" title: 'Update preview GIF'
body: 'Automatically generated preview GIF from workflow run ${{ env.run_id }}'
branch: update-preview-gif
base: main
delete-branch: true
add-paths: |
docs/assets/preview.gif
if: success() if: success()