Skip to content

Commit

Permalink
Update prepare_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cgendreau authored Apr 3, 2024
1 parent fdb3d87 commit 3369bcf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: dev
token: ${{ secrets.BICE_PAT }}
persist-credentials: false
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -24,12 +24,13 @@ jobs:
mvn help:evaluate -Dexpression=project.version -q -DforceStdout > version.txt
- name: Push to dev
env:
GH_TOKEN: ${{ secrets.BICE_PAT }}
GITHUB_TOKEN: ${{ secrets.BICE_PAT }}
run: |
VERSION=$(cat version.txt)
rm version.txt
git config user.name github-actions
git config user.email "[email protected]"
git add .
git commit -m "Prepare $VERSION release"
git push https://AAFC-BICE:${GH_TOKEN}@github.com/AAFC-BICoE/dina-base-api.git dev
git push https://AAFC-BICE:${GITHUB_TOKEN}@github.com/AAFC-BICoE/dina-base-api.git dev

0 comments on commit 3369bcf

Please sign in to comment.