Skip to content

Commit

Permalink
Fix branch reset and commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Mar 4, 2024
1 parent 06eac60 commit 92ad9b0
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,31 @@ jobs:
run: |
git commit --all --message "Update template URLs with local ones"
- name: Squash commits
- name: Reset branch to main
run: |

Check failure on line 84 in .github/workflows/docs.yaml

View workflow job for this annotation

GitHub Actions / lint / lint-github-action

shellcheck reported issue in this script: SC2046:warning:1:18: Quote this to prevent word splitting
git reset --soft $(git merge-base main HEAD)
git commit --message "[sync] Updates from \`awesome-template\`"
- name: Push commit to PR
run: |
git push --force
# git commit --message "[sync] Updates from \`awesome-template\`"

#- name: Push commit to PR
# run: |
# git push --force

- uses: peter-evans/create-pull-request@v6.0.1
with:
assignees: ${{ github.actor }}
commit-message: "[sync] Updates from `awesome-template`"
title: "[sync] Updates from `awesome-template`"
body: >
<details><summary><code>Workflow metadata</code></summary>
> [Auto-generated on run `#${{ github.run_id }}`](${{ github.event.repository.html_url }}/actions/runs/${{
github.run_id }}) by `${{ github.job }}` job from [`autofix.yaml`](${{ github.event.repository.html_url
}}/blob/${{ github.sha }}/.github/workflows/autofix.yaml) workflow.
</details>
labels: "📚 documentation"
branch: ${{ steps.template_sync.outputs.pr_branch }}

0 comments on commit 92ad9b0

Please sign in to comment.