Remove hard-coded repo
This commit is contained in:
@@ -3,6 +3,13 @@ description: >
|
|||||||
Check out alire-index with full history (needed by diff detectors
|
Check out alire-index with full history (needed by diff detectors
|
||||||
and check-author; grafted partial branches cause confusion), and
|
and check-author; grafted partial branches cause confusion), and
|
||||||
alire-index-checks checked out at the PR base branch.
|
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:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -15,6 +22,10 @@ runs:
|
|||||||
- name: Check out alire-index-checks
|
- name: Check out alire-index-checks
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: alire-project/alire-index-checks
|
repository: alire-project/${{ inputs.checks_repo }}
|
||||||
ref: ${{ github.base_ref }}
|
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"
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
uses: mosteo-actions/docker-run@v1
|
uses: mosteo-actions/docker-run@v1
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/alire-project/docker/gnat:${{matrix.tag}}
|
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: >
|
params: >
|
||||||
-v ${{ github.workspace }}/alire_install/bin/alr:/usr/bin/alr
|
-v ${{ github.workspace }}/alire_install/bin/alr:/usr/bin/alr
|
||||||
-v ${{ github.event_path}}:/etc/event.json
|
-v ${{ github.event_path}}:/etc/event.json
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
run: ${{env.PACMAN}} --noconfirm -S tar
|
run: ${{env.PACMAN}} --noconfirm -S tar
|
||||||
|
|
||||||
- name: Test crate
|
- name: Test crate
|
||||||
run: alire-index-checks/scripts/gh-build-crate.sh
|
run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GITHUB_EVENT_PATH: ${{ github.event_path }}
|
GITHUB_EVENT_PATH: ${{ github.event_path }}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
run: ${{env.PACMAN}} --noconfirm -S tar
|
run: ${{env.PACMAN}} --noconfirm -S tar
|
||||||
|
|
||||||
- name: Test crate
|
- name: Test crate
|
||||||
run: alire-index-checks/scripts/gh-build-crate.sh
|
run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GITHUB_EVENT_PATH: ${{ github.event_path }}
|
GITHUB_EVENT_PATH: ${{ github.event_path }}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
run: echo '-x11 +no_x11 +quartz' >> /opt/local/etc/macports/variants.conf
|
run: echo '-x11 +no_x11 +quartz' >> /opt/local/etc/macports/variants.conf
|
||||||
|
|
||||||
- name: Test crate
|
- name: Test crate
|
||||||
run: alire-index-checks/scripts/gh-build-crate.sh
|
run: ${{env.CHECKS_REPO}}/scripts/gh-build-crate.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GITHUB_EVENT_PATH: ${{ github.event_path }}
|
GITHUB_EVENT_PATH: ${{ github.event_path }}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run check
|
- name: Run check
|
||||||
run: >
|
run: >
|
||||||
alire-index-checks/scripts/${{inputs.script}}
|
${{env.CHECKS_REPO}}/scripts/${{inputs.script}}
|
||||||
"$SCRIPT_ARG"
|
"$SCRIPT_ARG"
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -33,5 +33,5 @@ jobs:
|
|||||||
toolchain: --disable-assistant # No compiler needed
|
toolchain: --disable-assistant # No compiler needed
|
||||||
|
|
||||||
- name: <<DIFF RELEASES>>
|
- name: <<DIFF RELEASES>>
|
||||||
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
|
shell: bash
|
||||||
|
|||||||
@@ -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
|
# We use this crate as a trigger to conveniently test minor changes to
|
||||||
# metaprocesses of the CI of the repository itself.
|
# metaprocesses of the CI of the repository itself.
|
||||||
# Last touch: 2026-05-22 17:13 CEST
|
# Last touch: 2026-05-22 17:51 CEST
|
||||||
|
|||||||
Reference in New Issue
Block a user