From 41424df44df2e85d68c41d99ab1f9175cac01b7c Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Fri, 22 May 2026 17:51:39 +0200 Subject: [PATCH] Remove hard-coded repo --- .github/actions/checkout-repos/action.yml | 15 +++++++++++++-- .github/workflows/build-distros.yml | 2 +- .github/workflows/build-native-master.yml | 2 +- .github/workflows/build-native.yml | 2 +- .github/workflows/build-ports.yml | 2 +- .github/workflows/check-with-script.yml | 2 +- .github/workflows/diff-release.yml | 2 +- index/li/libhello/libhello-1.0.1.toml | 2 +- 8 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/actions/checkout-repos/action.yml b/.github/actions/checkout-repos/action.yml index 95d40c54..5b038b08 100644 --- a/.github/actions/checkout-repos/action.yml +++ b/.github/actions/checkout-repos/action.yml @@ -3,6 +3,13 @@ description: > Check out alire-index with full history (needed by diff detectors and check-author; grafted partial branches cause confusion), and alire-index-checks checked out at the PR base branch. + Also exports CHECKS_REPO for use in subsequent run steps. + +inputs: + checks_repo: + description: Name of the checks repository. + required: false + default: alire-index-checks runs: using: composite @@ -15,6 +22,10 @@ runs: - name: Check out alire-index-checks uses: actions/checkout@v4 with: - repository: alire-project/alire-index-checks + repository: alire-project/${{ inputs.checks_repo }} ref: ${{ github.base_ref }} - path: alire-index-checks + path: ${{ inputs.checks_repo }} + + - name: Export CHECKS_REPO + shell: bash + run: echo "CHECKS_REPO=${{ inputs.checks_repo }}" >> "$GITHUB_ENV" diff --git a/.github/workflows/build-distros.yml b/.github/workflows/build-distros.yml index 09e7d9ce..22cd6084 100644 --- a/.github/workflows/build-distros.yml +++ b/.github/workflows/build-distros.yml @@ -54,7 +54,7 @@ jobs: uses: mosteo-actions/docker-run@v1 with: image: ghcr.io/alire-project/docker/gnat:${{matrix.tag}} - command: alire-index-checks/scripts/gh-build-crate.sh + command: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh params: > -v ${{ github.workspace }}/alire_install/bin/alr:/usr/bin/alr -v ${{ github.event_path}}:/etc/event.json diff --git a/.github/workflows/build-native-master.yml b/.github/workflows/build-native-master.yml index 6e50933f..94583ee0 100644 --- a/.github/workflows/build-native-master.yml +++ b/.github/workflows/build-native-master.yml @@ -55,7 +55,7 @@ jobs: run: ${{env.PACMAN}} --noconfirm -S tar - name: Test crate - run: alire-index-checks/scripts/gh-build-crate.sh + run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh shell: bash env: GITHUB_EVENT_PATH: ${{ github.event_path }} diff --git a/.github/workflows/build-native.yml b/.github/workflows/build-native.yml index cccf74d8..93afc4e7 100644 --- a/.github/workflows/build-native.yml +++ b/.github/workflows/build-native.yml @@ -51,7 +51,7 @@ jobs: run: ${{env.PACMAN}} --noconfirm -S tar - name: Test crate - run: alire-index-checks/scripts/gh-build-crate.sh + run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh shell: bash env: GITHUB_EVENT_PATH: ${{ github.event_path }} diff --git a/.github/workflows/build-ports.yml b/.github/workflows/build-ports.yml index 58fc6e65..3ffcbb96 100644 --- a/.github/workflows/build-ports.yml +++ b/.github/workflows/build-ports.yml @@ -54,7 +54,7 @@ jobs: run: echo '-x11 +no_x11 +quartz' >> /opt/local/etc/macports/variants.conf - name: Test crate - run: alire-index-checks/scripts/gh-build-crate.sh + run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh shell: bash env: GITHUB_EVENT_PATH: ${{ github.event_path }} diff --git a/.github/workflows/check-with-script.yml b/.github/workflows/check-with-script.yml index 86d5473a..74c73a71 100644 --- a/.github/workflows/check-with-script.yml +++ b/.github/workflows/check-with-script.yml @@ -30,7 +30,7 @@ jobs: - name: Run check run: > - alire-index-checks/scripts/${{inputs.script}} + ${{env.CHECKS_REPO}}/scripts/${{inputs.script}} "$SCRIPT_ARG" shell: bash env: diff --git a/.github/workflows/diff-release.yml b/.github/workflows/diff-release.yml index 8b24a3ed..ecee650c 100644 --- a/.github/workflows/diff-release.yml +++ b/.github/workflows/diff-release.yml @@ -33,5 +33,5 @@ jobs: toolchain: --disable-assistant # No compiler needed - name: <> - run: alire-index-checks/scripts/diff-release.sh || true # No deal breaker if failed + run: ${{env.CHECKS_REPO}}/scripts/diff-release.sh || true # No deal breaker if failed shell: bash diff --git a/index/li/libhello/libhello-1.0.1.toml b/index/li/libhello/libhello-1.0.1.toml index 2cff43e0..2e96efd1 100644 --- a/index/li/libhello/libhello-1.0.1.toml +++ b/index/li/libhello/libhello-1.0.1.toml @@ -15,4 +15,4 @@ url = "git+https://github.com/alire-project/libhello.git" # We use this crate as a trigger to conveniently test minor changes to # metaprocesses of the CI of the repository itself. -# Last touch: 2026-05-22 17:13 CEST +# Last touch: 2026-05-22 17:51 CEST