Skip to content

Commit 1677881

Browse files
refactor: use external composite actions
1 parent 730b9de commit 1677881

9 files changed

Lines changed: 15 additions & 207 deletions

File tree

.github/actions/test/check/action.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/actions/test/label/action.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/actions/test/unlabel/action.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/all-green.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
- uses: actions/checkout@v4
1212

1313
- name: All Green
14-
uses: getdevopspro/github-actions/all-green@v6.1.1
14+
uses: getdevopspro/github-actions/all-green@v6.2.2

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build:
1212
name: Build
13-
uses: getdevopspro/github-actions/.github/workflows/build.yml@v6.1.1
13+
uses: getdevopspro/github-actions/.github/workflows/build.yml@v6.2.2
1414
with:
1515
version-package: package.json
1616
version-package-lock: package-lock.json

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
promote:
2525
name: Job
2626
needs: build
27-
uses: getdevopspro/github-actions/.github/workflows/promote.yml@v6.1.1
27+
uses: getdevopspro/github-actions/.github/workflows/promote.yml@v6.2.2
2828
secrets:
2929
# To bypass ruleset enforcing checks
3030
checkout-token: ${{ secrets.BOT_REPO_TOKEN }}

.github/workflows/test-robot-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
default: 'test-robot-needed'
1616
secrets:
1717
token:
18-
description: 'PAT used to post comments'
18+
description: 'GitHub token or PAT'
1919
required: false
2020

2121
permissions:
@@ -31,9 +31,9 @@ jobs:
3131
- uses: actions/checkout@v4
3232

3333
- name: Robot Test Check
34-
uses: ./.github/actions/test/check
34+
uses: getdevopspro/github-actions/test/check@v6.2.2
3535
with:
3636
label-done: ${{ inputs.label-test-robot-done }}
3737
label-needed: ${{ inputs.label-test-robot-needed }}
3838
test-name: Robot
39-
token: ${{ secrets.token }}
39+
token: ${{ secrets.token || github.token }}

.github/workflows/test-robot-label.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
default: 'test-robot-needed'
1616
secrets:
1717
token:
18-
description: 'PAT used to post comments'
18+
description: 'GitHub token or PAT'
1919
required: false
2020

2121
permissions:
@@ -33,15 +33,15 @@ jobs:
3333
- uses: actions/checkout@v4
3434

3535
- name: Robot Test Label
36-
uses: ./.github/actions/test/label
36+
uses: getdevopspro/github-actions/test/label@v6.2.2
3737
with:
3838
label-done: ${{ inputs.label-test-robot-done }}
3939
label-needed: ${{ inputs.label-test-robot-needed }}
4040
test-name: Robot
41-
token: ${{ secrets.token }}
41+
token: ${{ secrets.token || github.token }}
4242

4343
- name: Rerun pull-request workflow
44-
uses: getdevopspro/github-actions/pr/checks-rerun@v6.1.1
44+
uses: getdevopspro/github-actions/pr/checks-rerun@v6.2.2
4545
with:
4646
workflow-id: pull-request.yml
47-
github-token: ${{ secrets.token }}
47+
token: ${{ secrets.token || github.token }}

.github/workflows/test-robot-unlabel.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
default: 'test-robot-needed'
1616
secrets:
1717
token:
18-
description: 'PAT used to post comments'
18+
description: 'GitHub token or PAT'
1919
required: false
2020

2121
permissions:
@@ -26,14 +26,14 @@ jobs:
2626
test-robot-unlabel:
2727
if: contains(github.event.pull_request.labels.*.name, inputs.label-test-robot-done)
2828
name: Robot Test Unlabel
29-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-latest|
3030
steps:
3131
- uses: actions/checkout@v4
3232

3333
- name: Robot Test Unlabel
34-
uses: ./.github/actions/test/unlabel
34+
uses: getdevopspro/github-actions/test/unlabel@v6.2.2
3535
with:
3636
label-done: ${{ inputs.label-test-robot-done }}
3737
label-needed: ${{ inputs.label-test-robot-needed }}
3838
test-name: Robot
39-
token: ${{ secrets.token }}
39+
token: ${{ secrets.token || github.token }}

0 commit comments

Comments
 (0)