Skip to content

Commit aaa1a4b

Browse files
committed
[GHA][Create Tag] Replaced TRAVIS_GITHUB_TOKEN with GitHub App token
1 parent b45edf7 commit aaa1a4b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/auto_tag.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,22 @@ jobs:
2525
timeout-minutes: 30
2626

2727
steps:
28+
- name: Generate token
29+
id: generate_token
30+
uses: actions/create-github-app-token@v2
31+
with:
32+
app-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
33+
private-key: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
34+
owner: ${{ github.repository_owner }}
35+
2836
- name: Check for admin-ui-assets tag
29-
if: github.event.repository.name == 'oss'
3037
uses: octokit/request-action@v2.x
3138
with:
3239
owner: ibexa
3340
repo: admin-ui-assets
3441
route: /repos/{owner}/{repo}/contents/package.json?ref=v${{ inputs.version }}
3542
env:
36-
GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
43+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
3744

3845
# The jq command would return a zero exit status if it was able to filter the input JSON data and
3946
# produce at least one matching object in the array, and a non-zero exit status if no matching object was found.

0 commit comments

Comments
 (0)