Skip to content

Commit

Permalink
Update token fetcher
Browse files Browse the repository at this point in the history
Signed-off-by: bakhtin <[email protected]>
  • Loading branch information
bakhtin committed Aug 15, 2023
1 parent 7e611bd commit 29b5060
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,12 @@ jobs:
# run: |
# helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Generate JWT and token
id: generate-github-app-tokens
uses: jamestrousdale/github-app-jwt-token@0.1.4
- name: Retrieve GH app token
id: generate-github-app-token
uses: getsentry/action-github-app-token@v2
with:
app-id: ${{ secrets.CHART_UPDATER_APP_ID }}
private-key: ${{ secrets.CHART_UPDATER_APP_KEY }}

- name: Set environment from action output
run: |
{
echo "GITHUB_APP_JWT=${{ steps.generate-github-app-tokens.outputs.jwt }}"
echo "GITHUB_APP_ACCESS_TOKEN=${{ steps.generate-github-app-tokens.outputs.access-token }}"
} >> ${GITHUB_ENV}
app_id: ${{ secrets.CHART_UPDATER_APP_ID }}
private_key: ${{ secrets.CHART_UPDATER_APP_KEY }}

- name: Make changes
run: |
Expand All @@ -50,7 +43,7 @@ jobs:
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ env.GITHUB_APP_ACCESS_TOKEN }}
github_token: ${{ steps.generate-github-app-token.outputs.token }}
message: Test gh-pages
branch: gh-pages-test

Expand Down

0 comments on commit 29b5060

Please sign in to comment.