Skip to content

Commit

Permalink
fix: use github app for updatecli GA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olblak authored May 17, 2024
1 parent f18d94f commit bd4fcea
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,16 @@ jobs:
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: tibdex/[email protected]
id: generate_token
if: github.ref == 'refs/heads/v2'
with:
app_id: ${{ secrets.UPDATECLIBOT_APP_ID }}
private_key: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}

- name: "Run updatecli"
run: "updatecli apply --config ./updatecli/updatecli.d"
env:
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UPDATECLI_GITHUB_ACTOR: ${{ secrets.UPDATECLI_BOT_GITHUB_ACTOR }}
UPDATECLI_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 comments on commit bd4fcea

Please sign in to comment.