Skip to content

Commit

Permalink
ci: set ref for checkout task
Browse files Browse the repository at this point in the history
  • Loading branch information
msudgh committed Dec 18, 2023
1 parent 8e5af9d commit 2909fd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Set up Node.js
uses: actions/setup-node@v2
Expand All @@ -36,8 +38,6 @@ jobs:

- name: Commit and Push Changes
run: |
git add CHANGELOG.md package.json package-lock.json
git commit -m "chore(release): Update Changelog for PR ${{ github.event.pull_request.number }}"
git push
git push origin ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for pushing changes

0 comments on commit 2909fd7

Please sign in to comment.