diff --git a/.github/workflows/build-and-publish-pre-release.yml b/.github/workflows/build-and-publish-pre-release.yml index 6ab28fbd..b71cb53c 100644 --- a/.github/workflows/build-and-publish-pre-release.yml +++ b/.github/workflows/build-and-publish-pre-release.yml @@ -29,6 +29,9 @@ jobs: runs-on: [self-hosted, linux, build] + env: + REPO_STATUS: ${{vars.REPO_VISIBILITY}} + steps: - name: "Initialise Workspace" if: startsWith(runner.name, 'buildagent-') @@ -41,7 +44,8 @@ jobs: fetch-depth: 0 fetch-tags: true - - name: "Check Repo Visibility" + - if: inputs.REPO_STATUS == '' + name: "Check Repo Visibility" uses: credfeto/action-repo-visibility@v1.2.0 id: visibility with: diff --git a/.github/workflows/build-and-publish-release.yml b/.github/workflows/build-and-publish-release.yml index 1f65916a..d3bc2a94 100644 --- a/.github/workflows/build-and-publish-release.yml +++ b/.github/workflows/build-and-publish-release.yml @@ -20,6 +20,9 @@ jobs: runs-on: [self-hosted, linux, build] + env: + REPO_STATUS: ${{vars.REPO_VISIBILITY}} + steps: - name: "Initialise Workspace" if: startsWith(runner.name, 'buildagent-') @@ -32,7 +35,8 @@ jobs: fetch-depth: 0 fetch-tags: true - - name: "Check Repo Visibility" + - if: inputs.REPO_STATUS == '' + name: "Check Repo Visibility" uses: credfeto/action-repo-visibility@v1.2.0 id: visibility with: