Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79c3510

Browse files
committed
Fix for releasing version update.
1 parent 327110f commit 79c3510

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

.github/scripts/push_project_version.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,22 @@ jobs:
141141
needs: [ build ]
142142
concurrency: publish
143143
runs-on: ubuntu-latest
144+
env:
145+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
144146
if: |
145147
github.repository == 'utPLSQL/utPLSQL' &&
146148
github.base_ref == null &&
147149
( startsWith( github.ref, 'refs/heads/release/v' ) || github.ref == 'refs/heads/develop' )
148150
steps:
151+
- name: 🔍 API_TOKEN_GITHUB
152+
if: env.API_TOKEN_GITHUB == ''
153+
env:
154+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
155+
run: echo "API_TOKEN_GITHUB=${GITHUB_TOKEN}" >> $GITHUB_ENV
149156
- uses: actions/checkout@v2
150157
with:
151158
fetch-depth: 0
159+
token: ${{ env.API_TOKEN_GITHUB }}
152160
- uses: c-py/action-dotenv-to-setenv@v2
153161
with:
154162
env-file: .github/variables/.env
@@ -164,7 +172,7 @@ jobs:
164172

165173
- name: Push version update to repository
166174
id: push-version-number-update
167-
run: |
175+
run: |
168176
git add sonar-project.properties VERSION source/* docs/*
169177
git commit -m 'Updated project version after build [skip ci]'
170178
git push --quiet origin HEAD:${CI_ACTION_REF_NAME}

0 commit comments

Comments
 (0)