Skip to content

Commit 7f3757d

Browse files
authored
Merge pull request #1602 from CMSgov/Fix-release-01
QPPA-0000: fix release bug
2 parents 9f45f1b + 9db29b5 commit 7f3757d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/draft-new-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
name: "Draft a new release"
1313
runs-on: ubuntu-latest
1414
if: github.ref_name == 'develop'
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1715
outputs:
1816
commitSha: ${{ steps.make-commit.outputs.commit }}
1917
steps:
2018
- uses: actions/checkout@v4
19+
with:
20+
token: ${{ secrets.ACTIONS_NICHOLAS_PAT }}
2121

2222
- name: Create release branch
2323
run: |
@@ -33,7 +33,7 @@ jobs:
3333
prerelease: false
3434
publish: false
3535
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.ACTIONS_NICHOLAS_PAT }}
3737

3838
- name: Set up JDK 17
3939
uses: actions/setup-java@v4
@@ -63,15 +63,15 @@ jobs:
6363
git config user.name "GitHub actions"
6464
git config user.email noreply@github.com
6565
66-
- name: Fetch commit hash
67-
id: make-commit
68-
run: echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
69-
7066
- name: Commit pom files
7167
run: |
7268
git add '**/pom.xml' pom.xml
7369
git commit --message "Prepare release v${{ github.event.inputs.version }}"
7470
71+
- name: Fetch commit hash
72+
id: make-commit
73+
run: echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
74+
7575
- name: Push new branch
7676
run: |
7777
git push origin release/v${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)