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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
sudo install /tmp/actionlint /usr/local/bin/actionlint

- name: Lint workflows
run: actionlint .github/workflows/*.yml
run: actionlint -ignore 'property "job_workflow_sha" is not defined' .github/workflows/*.yml

yaml-validity:
name: YAML Validity
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-config-render-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flux-render-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gitops-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand Down
36 changes: 2 additions & 34 deletions .github/workflows/jvm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,10 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Resolve workflow ref
id: workflow-ref
shell: bash
env:
WORKFLOW_REF: ${{ github.workflow_ref }}
run: |
set -euo pipefail

ref="${WORKFLOW_REF#*@}"
if [ -z "$ref" ] || [ "$ref" = "$WORKFLOW_REF" ]; then
echo "::error::Unable to resolve reusable workflow ref from $WORKFLOW_REF"
exit 1
fi

printf 'ref=%s\n' "$ref" >> "$GITHUB_OUTPUT"

- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand All @@ -97,26 +81,10 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Resolve workflow ref
id: workflow-ref
shell: bash
env:
WORKFLOW_REF: ${{ github.workflow_ref }}
run: |
set -euo pipefail

ref="${WORKFLOW_REF#*@}"
if [ -z "$ref" ] || [ "$ref" = "$WORKFLOW_REF" ]; then
echo "::error::Unable to resolve reusable workflow ref from $WORKFLOW_REF"
exit 1
fi

printf 'ref=%s\n' "$ref" >> "$GITHUB_OUTPUT"

- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/migration-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/platform-config-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v6
with:
repository: JorisJonkers-dev/github-workflows
ref: ${{ steps.workflow-ref.outputs.ref }}
ref: ${{ github.job_workflow_sha }}
path: .github-workflows
persist-credentials: false

Expand Down
Loading