diff --git a/.github-gen/velnor-workflow.toml b/.github-gen/velnor-workflow.toml index 89160d7..9d4888e 100644 --- a/.github-gen/velnor-workflow.toml +++ b/.github-gen/velnor-workflow.toml @@ -2,7 +2,7 @@ schema = 1 [generator] repository = "tailrocks/graphql-java-datetime" -revision = "2678913a8e3db842a2f92e82e2e1119fae7dad35" +revision = "5e311cace1fdfc1b58bf2f620c93cd815a9f005c" [workflow] runners = "both" diff --git a/.github/ci/.github-actions-generator-state b/.github/ci/.github-actions-generator-state index 0a8bd6d..6ba45eb 100644 --- a/.github/ci/.github-actions-generator-state +++ b/.github/ci/.github-actions-generator-state @@ -1,16 +1,16 @@ # Generated ownership state; do not edit. schema = 2 [inputs] -config 0b7d48ff41fc5afb +config abd78cd1e67c7678 scan 1b72102e5495def6 -generator 48 +generator 49 [outputs] .github/actionlint.yaml ec35f48ae7e90e0e .github/ci/project.toml b19da7b7165e2f66 -.github/workflows/ci-main.yml c67b1a108291c905 -.github/workflows/ci-policy.yml a89702018980ea23 -.github/workflows/ci-pr.yml d9a1b78ec861fc01 -.github/workflows/ci-unit-gradle.yml a3a1798618cd5f49 -.github/workflows/maintenance.yml 4d45b21134dcefe5 -.github/workflows/nightly.yml 76e5e2bc12a599c6 +.github/workflows/ci-main.yml da446cbdb613bc9f +.github/workflows/ci-policy.yml 6f0b5b212b6aea40 +.github/workflows/ci-pr.yml 58d212b6c7d374ec +.github/workflows/ci-unit-gradle.yml f47b2203af85cf1e +.github/workflows/maintenance.yml d85e3a9f42881cac +.github/workflows/nightly.yml c73d542eaf687a7e config/fleet/velnor-host.env d14b419216449423 diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 0a1ea1e..c28bb52 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -58,11 +58,11 @@ jobs: persist-credentials: false - name: Set up Velnor workflow runtime if: ${{ runner.environment == 'github-hosted' }} - uses: tailrocks/velnor/.github/actions/setup-velnor-workflow@2678913a8e3db842a2f92e82e2e1119fae7dad35 + uses: tailrocks/velnor/.github/actions/setup-velnor-workflow@5e311cace1fdfc1b58bf2f620c93cd815a9f005c with: - rev: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + rev: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c - name: Set trusted workflow policy revision - run: echo "VELNOR_WORKFLOW_POLICY_REVISION=2678913a8e3db842a2f92e82e2e1119fae7dad35" >> "$GITHUB_ENV" + run: echo "VELNOR_WORKFLOW_POLICY_REVISION=5e311cace1fdfc1b58bf2f620c93cd815a9f005c" >> "$GITHUB_ENV" - name: Select affected units id: plan env: @@ -79,7 +79,7 @@ jobs: - name: Prepare Velnor workflow runtime shell: bash env: - EXPECTED_REVISION: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + EXPECTED_REVISION: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c run: | set -euo pipefail stage="$RUNNER_TEMP/velnor-workflow-runtime" @@ -97,7 +97,7 @@ jobs: - name: Publish Velnor workflow runtime uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: velnor-workflow-runtime-2678913a8e3db842a2f92e82e2e1119fae7dad35-${{ runner.os }}-${{ runner.arch }} + name: velnor-workflow-runtime-5e311cace1fdfc1b58bf2f620c93cd815a9f005c-${{ runner.os }}-${{ runner.arch }} path: ${{ runner.temp }}/velnor-workflow-runtime if-no-files-found: error retention-days: 7 @@ -147,7 +147,7 @@ jobs: with: backend: github version: 1.11.1 - cache-key: velnor-policy-mbx-1.11.1-${{ runner.os }}-${{ runner.arch }}-2678913a8e3db842a2f92e82e2e1119fae7dad35 + cache-key: velnor-policy-mbx-1.11.1-${{ runner.os }}-${{ runner.arch }}-5e311cace1fdfc1b58bf2f620c93cd815a9f005c restore-keys: | velnor-policy-mbx-1.11.1-${{ runner.os }}-${{ runner.arch }}- - name: Install pinned Velnor workflow runtime @@ -167,7 +167,7 @@ jobs: cargo install \ --locked \ --git https://github.com/tailrocks/velnor \ - --rev 2678913a8e3db842a2f92e82e2e1119fae7dad35 \ + --rev 5e311cace1fdfc1b58bf2f620c93cd815a9f005c \ --root "$VELNOR_WORKFLOW_ROOT" \ velnor-workflow \ --bin velnor-workflow @@ -189,7 +189,7 @@ jobs: WORKFLOW_ROOT: ${{ github.workspace }}/policy-checkout HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} BASE_SHA: ${{ github.event.pull_request.base.sha || github.sha }} - VELNOR_WORKFLOW_POLICY_REVISION: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + VELNOR_WORKFLOW_POLICY_REVISION: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c run: | set -euo pipefail velnor-workflow policy \ diff --git a/.github/workflows/ci-policy.yml b/.github/workflows/ci-policy.yml index f7db6c7..0eccc43 100644 --- a/.github/workflows/ci-policy.yml +++ b/.github/workflows/ci-policy.yml @@ -51,7 +51,7 @@ jobs: with: backend: github version: 1.11.1 - cache-key: velnor-policy-mbx-1.11.1-${{ runner.os }}-${{ runner.arch }}-2678913a8e3db842a2f92e82e2e1119fae7dad35 + cache-key: velnor-policy-mbx-1.11.1-${{ runner.os }}-${{ runner.arch }}-5e311cace1fdfc1b58bf2f620c93cd815a9f005c restore-keys: | velnor-policy-mbx-1.11.1-${{ runner.os }}-${{ runner.arch }}- - name: Install pinned Velnor workflow runtime @@ -71,7 +71,7 @@ jobs: cargo install \ --locked \ --git https://github.com/tailrocks/velnor \ - --rev 2678913a8e3db842a2f92e82e2e1119fae7dad35 \ + --rev 5e311cace1fdfc1b58bf2f620c93cd815a9f005c \ --root "$VELNOR_WORKFLOW_ROOT" \ velnor-workflow \ --bin velnor-workflow @@ -93,7 +93,7 @@ jobs: WORKFLOW_ROOT: ${{ github.workspace }}/policy-checkout HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} BASE_SHA: ${{ github.event.pull_request.base.sha || github.sha }} - VELNOR_WORKFLOW_POLICY_REVISION: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + VELNOR_WORKFLOW_POLICY_REVISION: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c run: | set -euo pipefail velnor-workflow policy \ diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index a8df518..48b2c30 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -57,11 +57,11 @@ jobs: persist-credentials: false - name: Set up Velnor workflow runtime if: ${{ runner.environment == 'github-hosted' }} - uses: tailrocks/velnor/.github/actions/setup-velnor-workflow@2678913a8e3db842a2f92e82e2e1119fae7dad35 + uses: tailrocks/velnor/.github/actions/setup-velnor-workflow@5e311cace1fdfc1b58bf2f620c93cd815a9f005c with: - rev: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + rev: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c - name: Set trusted workflow policy revision - run: echo "VELNOR_WORKFLOW_POLICY_REVISION=2678913a8e3db842a2f92e82e2e1119fae7dad35" >> "$GITHUB_ENV" + run: echo "VELNOR_WORKFLOW_POLICY_REVISION=5e311cace1fdfc1b58bf2f620c93cd815a9f005c" >> "$GITHUB_ENV" - name: Select affected units id: plan env: @@ -78,7 +78,7 @@ jobs: - name: Prepare Velnor workflow runtime shell: bash env: - EXPECTED_REVISION: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + EXPECTED_REVISION: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c run: | set -euo pipefail stage="$RUNNER_TEMP/velnor-workflow-runtime" @@ -96,7 +96,7 @@ jobs: - name: Publish Velnor workflow runtime uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: velnor-workflow-runtime-2678913a8e3db842a2f92e82e2e1119fae7dad35-${{ runner.os }}-${{ runner.arch }} + name: velnor-workflow-runtime-5e311cace1fdfc1b58bf2f620c93cd815a9f005c-${{ runner.os }}-${{ runner.arch }} path: ${{ runner.temp }}/velnor-workflow-runtime if-no-files-found: error retention-days: 7 diff --git a/.github/workflows/ci-unit-gradle.yml b/.github/workflows/ci-unit-gradle.yml index 89f331e..3210abf 100644 --- a/.github/workflows/ci-unit-gradle.yml +++ b/.github/workflows/ci-unit-gradle.yml @@ -124,12 +124,12 @@ jobs: - name: Download Velnor workflow runtime uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: - name: velnor-workflow-runtime-2678913a8e3db842a2f92e82e2e1119fae7dad35-${{ runner.os }}-${{ runner.arch }} + name: velnor-workflow-runtime-5e311cace1fdfc1b58bf2f620c93cd815a9f005c-${{ runner.os }}-${{ runner.arch }} path: .velnor-workflow-runtime - name: Verify Velnor workflow runtime shell: bash env: - EXPECTED_REVISION: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + EXPECTED_REVISION: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c run: | set -euo pipefail manifest=.velnor-workflow-runtime/manifest.json @@ -143,7 +143,7 @@ jobs: - name: Add Velnor workflow runtime to PATH shell: bash env: - EXPECTED_REVISION: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + EXPECTED_REVISION: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c run: | set -euo pipefail home="$RUNNER_TEMP/velnor-workflow-runtime-artifact" @@ -298,7 +298,7 @@ jobs: fi - name: Report phase timings and cache outcomes if: always() - uses: tailrocks/velnor/.github/actions/report-velnor-ci-outcomes@2678913a8e3db842a2f92e82e2e1119fae7dad35 + uses: tailrocks/velnor/.github/actions/report-velnor-ci-outcomes@5e311cace1fdfc1b58bf2f620c93cd815a9f005c with: job_label: ${{ inputs.unit }} ci_lane: github @@ -479,7 +479,7 @@ jobs: fi - name: Report phase timings and cache outcomes if: always() - uses: tailrocks/velnor/.github/actions/report-velnor-ci-outcomes@2678913a8e3db842a2f92e82e2e1119fae7dad35 + uses: tailrocks/velnor/.github/actions/report-velnor-ci-outcomes@5e311cace1fdfc1b58bf2f620c93cd815a9f005c with: job_label: ${{ inputs.unit }} ci_lane: velnor diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index a5f8a1c..b7504df 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -79,7 +79,7 @@ jobs: run: | set -euo pipefail for workflow in ci-main.yml nightly.yml; do - if [[ "$(gh run list --workflow "$workflow" --status in_progress --limit 1 --json databaseId --jq 'length')" != "0" ]]; then + if [[ "$(gh run list --repo "$GITHUB_REPOSITORY" --workflow "$workflow" --status in_progress --limit 1 --json databaseId --jq 'length')" != "0" ]]; then echo "skip=true" >> "$GITHUB_OUTPUT" echo "$workflow is in_progress; skipping cache retention" >> "$GITHUB_STEP_SUMMARY" exit 0 @@ -88,12 +88,12 @@ jobs: echo "skip=false" >> "$GITHUB_OUTPUT" - name: Set up Velnor workflow runtime if: ${{ steps.retention-gate.outputs.skip != 'true' && runner.environment == 'github-hosted' }} - uses: tailrocks/velnor/.github/actions/setup-velnor-workflow@2678913a8e3db842a2f92e82e2e1119fae7dad35 + uses: tailrocks/velnor/.github/actions/setup-velnor-workflow@5e311cace1fdfc1b58bf2f620c93cd815a9f005c with: - rev: 2678913a8e3db842a2f92e82e2e1119fae7dad35 + rev: 5e311cace1fdfc1b58bf2f620c93cd815a9f005c - name: Set trusted workflow policy revision if: steps.retention-gate.outputs.skip != 'true' - run: echo "VELNOR_WORKFLOW_POLICY_REVISION=2678913a8e3db842a2f92e82e2e1119fae7dad35" >> "$GITHUB_ENV" + run: echo "VELNOR_WORKFLOW_POLICY_REVISION=5e311cace1fdfc1b58bf2f620c93cd815a9f005c" >> "$GITHUB_ENV" - name: Sweep closed-PR merge-ref caches if: steps.retention-gate.outputs.skip != 'true' env: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index fb9c849..843b92e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -57,6 +57,7 @@ jobs: - name: Dispatch ci-main on default branch env: GH_TOKEN: ${{ github.token }} + GITHUB_REPOSITORY: ${{ github.repository }} DEFAULT_BRANCH: main DISPATCH_RUNNER: ${{ github.event.inputs.runner || 'both' }} DISPATCH_SCOPE: ${{ github.event.inputs.scope || 'full' }} @@ -65,6 +66,7 @@ jobs: run: | set -euo pipefail gh workflow run ci-main.yml \ + -R "$GITHUB_REPOSITORY" \ --ref "$DEFAULT_BRANCH" \ -f runner="$DISPATCH_RUNNER" \ -f scope="$DISPATCH_SCOPE" \