Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion get-github-token/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ inputs:

skip-token-revoke:
description: 'If truthy, the token will not be revoked when the current job is complete'
default: 'false'
required: false

github-api-url:
Expand Down Expand Up @@ -48,7 +49,7 @@ runs:

- id: app
if: inputs.token == '' && (inputs.app-id != '' || inputs.private-key != '')
uses: myparcelnl/actions/setup-app-credentials@v4
uses: myparcelnl/actions/setup-app-credentials@v5
with:
app-id: ${{ inputs.app-id }}
private-key: ${{ inputs.private-key }}
Expand Down
2 changes: 1 addition & 1 deletion pr-assign-author/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
steps:
- uses: actions/checkout@v6

- uses: myparcelnl/actions/get-github-token@v4
- uses: myparcelnl/actions/get-github-token@v5
id: token
with:
token: ${{ inputs.token }}
Expand Down
18 changes: 9 additions & 9 deletions pr-label-by-review/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ inputs:
runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: myparcelnl/actions/get-github-token@v4
- uses: myparcelnl/actions/get-github-token@v5
id: token
with:
token: ${{ inputs.token }}
Expand All @@ -49,7 +49,7 @@ runs:
- name: 'Get required approvals from branch protection'
id: branch-protection
if: inputs.required-approvals == '' && inputs.protection-type == 'branch-protection'
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
github-token: ${{ steps.token.outputs.token }}
#language=javascript
Expand All @@ -67,7 +67,7 @@ runs:
- name: 'Get required approvals from rule sets'
id: rulesets
if: inputs.required-approvals == '' && inputs.protection-type == 'rulesets'
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
github-token: ${{ steps.token.outputs.token }}
#language=javascript
Expand Down Expand Up @@ -99,7 +99,7 @@ runs:

- name: 'Collect pull request reviews'
id: check
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
github-token: ${{ steps.token.outputs.token }}
#language=javascript
Expand Down Expand Up @@ -149,7 +149,7 @@ runs:
core.setOutput('changes-requested', changesRequested ? 'true' : 'false');

- name: 'Add "approved" label'
uses: actions/github-script@v7
uses: actions/github-script@v9
if: steps.check.outputs.approved == 'true' && !contains(github.event.pull_request.labels.*.name, inputs.label-approved)
with:
github-token: ${{ steps.token.outputs.token }}
Expand All @@ -163,7 +163,7 @@ runs:
});

- name: 'Add "changes requested" label'
uses: actions/github-script@v7
uses: actions/github-script@v9
if: steps.check.outputs.changes-requested == 'true' && !contains(github.event.pull_request.labels.*.name, inputs.label-changes-requested)
with:
github-token: ${{ steps.token.outputs.token }}
Expand All @@ -177,7 +177,7 @@ runs:
});

- name: 'Remove "approved" label'
uses: actions/github-script@v7
uses: actions/github-script@v9
if: contains(github.event.pull_request.labels.*.name, inputs.label-approved) && (steps.check.outputs.approved == 'false')
with:
github-token: ${{ steps.token.outputs.token }}
Expand All @@ -191,7 +191,7 @@ runs:
});

- name: 'Remove "changes requested" label'
uses: actions/github-script@v7
uses: actions/github-script@v9
if: contains(github.event.pull_request.labels.*.name, inputs.label-changes-requested) && (steps.check.outputs.changes-requested == 'false')
with:
github-token: ${{ steps.token.outputs.token }}
Expand Down
5 changes: 3 additions & 2 deletions setup-app-credentials/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ inputs:

skip-token-revoke:
description: 'If truthy, the token will not be revoked when the current job is complete'
default: 'false'
required: false

github-api-url:
Expand All @@ -46,10 +47,10 @@ outputs:
runs:
using: composite
steps:
- uses: actions/create-github-app-token@v1
- uses: actions/create-github-app-token@v3
id: generate-token
with:
app-id: ${{ inputs.app-id }}
client-id: ${{ inputs.app-id }}
private-key: ${{ inputs.private-key }}
owner: ${{ inputs.owner }}
repositories: ${{ inputs.repositories }}
Expand Down
3 changes: 2 additions & 1 deletion setup-git-credentials/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ inputs:

skip-token-revoke:
description: 'If truthy, the token will not be revoked when the current job is complete'
default: 'false'
required: false

github-api-url:
Expand All @@ -46,7 +47,7 @@ outputs:
runs:
using: composite
steps:
- uses: myparcelnl/actions/setup-app-credentials@v4
- uses: myparcelnl/actions/setup-app-credentials@v5
id: credentials
with:
app-id: ${{ inputs.app-id }}
Expand Down
Loading