Skip to content

Commit

Permalink
test pat
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Apr 10, 2024
1 parent 69cb291 commit 5fdf688
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
if: ${{ github.ref == 'master' }}
uses: actions/github-script@v3
with:
github_token: ${{ secrets.PAT }}
script: |
core.setFailed('This workflow can not run on master branch')
- uses: actions/checkout@v3
Expand All @@ -44,8 +43,7 @@ jobs:
java-version: '11.x'
distribution: 'adopt'
cache: maven
token: ${{secrets.PAT}}
- name: 'Fix versions, commit and push new tag'
- name: 'Fix versions, commit and tag'
env:
LAST_MS_VERSION: ${{ github.event.inputs.previous-ms-version }}
NEW_MS_VERSION: ${{ github.event.inputs.version }}
Expand Down Expand Up @@ -94,7 +92,13 @@ jobs:
git add CHANGELOG.md
git commit -m "Version Release ${NEW_MS_VERSION}"
git tag v${NEW_MS_VERSION} # create tag
git push origin ${{ github.ref_name }} --tags # push tag
# git push origin ${{ github.ref_name }} --tags # push tags
name: Push to protected branch
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PAT }} # This requires a special token to be able to trigger checks on new branch creation
ref: ${{ github.ref }}
tags: true
update-main-changelog:
runs-on: ubuntu-latest
needs: fix-version
Expand All @@ -107,7 +111,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: 'Updte changelog on master'
- name: 'Update changelog on master'
env:
LAST_MS_VERSION: ${{ github.event.inputs.previous-ms-version }}
NEW_MS_VERSION: ${{ github.event.inputs.version }}
Expand Down

0 comments on commit 5fdf688

Please sign in to comment.