Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/all-green.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
- uses: actions/checkout@v4

- name: All Green
uses: getdevopspro/github-actions/all-green@v6.2.4
uses: getdevopspro/github-actions/all-green@v6.3.2
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: Build
uses: getdevopspro/github-actions/.github/workflows/build.yml@v6.2.4
uses: getdevopspro/github-actions/.github/workflows/build.yml@v6.3.2
with:
version-package: package.json
version-package-lock: package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR - Label

on:
pull_request:
types: [labeled]
types: [labeled, unlabeled]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event.label.name }}
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,35 @@ permissions:
checks: read

jobs:
test-robot-unlabel:
if: github.event.action == 'synchronize'
test-robot-remove:
name: Job
uses: ./.github/workflows/test-robot-unlabel.yml
uses: ./.github/workflows/test-robot-remove.yml
with:
label-test-robot-done: test-robot-done
label-test-robot-needed: test-robot-needed
secrets:
token: ${{ secrets.BOT_REPO_TOKEN }}

build:
needs: test-robot-unlabel
if: ${{ !failure() && !cancelled() && needs.test-robot-unlabel.result != 'failure' }}
needs: test-robot-remove
if: ${{ !failure() && !cancelled() && needs.test-robot-remove.result != 'failure' }}
name: Job
uses: ./.github/workflows/build.yml
# runs-on: ubuntu-latest
# name: Build
# steps:
# - run: echo "Build step - replace with actual build commands"

test-robot-check:
needs: build
if: ${{ !cancelled() }}
name: Job
uses: ./.github/workflows/test-robot-check.yml
with:
label-test-robot-done: test-robot-done
label-test-robot-needed: test-robot-needed
secrets:
token: ${{ secrets.BOT_REPO_TOKEN }}

all-green:
needs: test-robot-check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
promote:
name: Job
needs: build
uses: getdevopspro/github-actions/.github/workflows/promote.yml@v6.2.4
uses: getdevopspro/github-actions/.github/workflows/promote.yml@v6.3.2
secrets:
# To bypass ruleset enforcing checks
checkout-token: ${{ secrets.BOT_REPO_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-robot-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ permissions:

jobs:
test-robot-check-labels:
if: contains(github.event.pull_request.labels.*.name, inputs.label-test-robot-needed) || github.run_attempt > 1
name: Robot Test Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Robot Test Check
uses: getdevopspro/github-actions/test/check@v6.2.4
uses: getdevopspro/github-actions/test/label/check@v6.3.2
with:
label-done: ${{ inputs.label-test-robot-done }}
label-needed: ${{ inputs.label-test-robot-needed }}
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/test-robot-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,28 @@ permissions:

jobs:
test-robot-label:
if: github.event.action == 'labeled' &&
github.event.label.name == inputs['label-test-robot-done']
if: >
github.event.label.name == inputs['label-test-robot-done'] ||
github.event.label.name == inputs['label-test-robot-needed']
name: Robot Test Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Robot Test Label
uses: getdevopspro/github-actions/test/label@v6.2.4
- name: Robot Test Done Label
if: >
github.event.action == 'labeled' &&
github.event.label.name == inputs['label-test-robot-done']
uses: getdevopspro/github-actions/test/label/done/added@v6.3.2
with:
label-done: ${{ inputs.label-test-robot-done }}
label-needed: ${{ inputs.label-test-robot-needed }}
test-name: Robot
token: ${{ secrets.token }}

- name: Rerun pull-request workflow
uses: getdevopspro/github-actions/pr/checks-rerun@v6.2.4
uses: getdevopspro/github-actions/pr/job-rerun@v6.3.2
with:
workflow-id: pull-request.yml
token: ${{ secrets.token }}
job-name: "Job / Robot Test Check"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Robot Test Unlabel
name: Remove Robot Test

on:
workflow_call:
Expand All @@ -23,15 +23,15 @@ permissions:
pull-requests: write

jobs:
test-robot-unlabel:
if: contains(github.event.pull_request.labels.*.name, inputs.label-test-robot-done)
name: Robot Test Unlabel
runs-on: ubuntu-latest|
test-robot-remove:
if: github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, inputs.label-test-robot-done)
name: Remove Robot Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Robot Test Unlabel
uses: getdevopspro/github-actions/test/unlabel@v6.2.4
- name: Remove Robot Test Label
uses: getdevopspro/github-actions/test/label/done/remove@v6.3.2
with:
label-done: ${{ inputs.label-test-robot-done }}
label-needed: ${{ inputs.label-test-robot-needed }}
Expand Down