File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments