From 63e4490d7c90a68a70000131f9a6379e98a97e7d Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sun, 24 Sep 2023 22:38:57 -0500 Subject: [PATCH] workflows: move find-container-digest out of .github/workflows GitHub Actions won't allow other repos to run it if it's in the workflows directory. Signed-off-by: Benjamin Gilbert --- .github/{workflows => }/find-container-digest/action.yml | 0 .github/workflows/main.yml | 2 +- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/windows.yml | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename .github/{workflows => }/find-container-digest/action.yml (100%) diff --git a/.github/workflows/find-container-digest/action.yml b/.github/find-container-digest/action.yml similarity index 100% rename from .github/workflows/find-container-digest/action.yml rename to .github/find-container-digest/action.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b7e663b6..5142c93b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v3 - name: Find builder container digest id: find - uses: ./.github/workflows/find-container-digest + uses: ./.github/find-container-digest - name: Calculate parameters id: params run: echo "pkgver=main-$(echo ${{ github.sha }} | cut -c-7)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 246e93a2..c67796f2 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@v3 - name: Find builder container digest id: find - uses: ./.github/workflows/find-container-digest + uses: ./.github/find-container-digest - name: Calculate parameters id: params run: echo "pkgver=pr-${{ github.event.number }}.${{ github.run_number }}.${{ github.run_attempt }}-$(echo ${{ github.sha }} | cut -c-7)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73592823..84a784ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v3 - name: Find builder container digest id: find - uses: ./.github/workflows/find-container-digest + uses: ./.github/find-container-digest - name: Calculate parameters id: params run: echo "pkgver=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 91ec0f7f..dc251b90 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -6,7 +6,7 @@ on: workflow_call: inputs: builder_repo_and_digest: - # Use ./find-container-digest action to get this + # Use .github/find-container-digest action to get this description: Docker repo and image digest of the builder container required: true type: string