Switch to Github Application for Nur a bot
This commit is contained in:
parent
5e45d3ce36
commit
3979c659bd
2 changed files with 17 additions and 3 deletions
18
.github/workflows/update.yml
vendored
18
.github/workflows/update.yml
vendored
|
|
@ -14,6 +14,13 @@ jobs:
|
|||
update_nur:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: get_workflow_token
|
||||
uses: peter-murray/workflow-application-token-action@v4.0.1
|
||||
with:
|
||||
application_id: '${{ secrets.GH_APPLICATION_ID }}'
|
||||
application_private_key: '${{ secrets.GH_APPLICATION_PRIVATE_KEY }}'
|
||||
permissions: "contents:write"
|
||||
revoke_token: true
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
|
@ -25,11 +32,18 @@ jobs:
|
|||
- name: update nur / nur-combined
|
||||
run: ./ci/update-nur.sh
|
||||
env:
|
||||
API_TOKEN_GITHUB: '${{ secrets.API_TOKEN_GITHUB }}'
|
||||
API_TOKEN_GITHUB: '${{ steps.get_workflow_token.outputs.token }}'
|
||||
update_search:
|
||||
runs-on: ubuntu-latest
|
||||
needs: update_nur
|
||||
steps:
|
||||
- id: get_workflow_token
|
||||
uses: peter-murray/workflow-application-token-action@v4.0.1
|
||||
with:
|
||||
application_id: '${{ secrets.GH_APPLICATION_ID }}'
|
||||
application_private_key: '${{ secrets.GH_APPLICATION_PRIVATE_KEY }}'
|
||||
permissions: "contents:write"
|
||||
revoke_token: true
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v30
|
||||
with:
|
||||
|
|
@ -39,4 +53,4 @@ jobs:
|
|||
- name: update nur-search/data/packages.json
|
||||
run: ./ci/update-nur-search.sh
|
||||
env:
|
||||
API_TOKEN_GITHUB: '${{ secrets.API_TOKEN_GITHUB }}'
|
||||
API_TOKEN_GITHUB: '${{ steps.get_workflow_token.outputs.token }}'
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
# ==================================================
|
||||
|
||||
export GIT_AUTHOR_NAME="Nur a bot"
|
||||
export GIT_AUTHOR_EMAIL="nixpkgs-review@example.com"
|
||||
export GIT_AUTHOR_EMAIL="198656834+nur-a-bot[bot]@users.noreply.github.com"
|
||||
export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
|
||||
export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue