Skip to content

Commit

Permalink
visibility
Browse files Browse the repository at this point in the history
credfeto committed Oct 22, 2024
1 parent edbf981 commit 6cf70b2
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish-pre-release.yml
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ jobs:
fetch-depth: 0
fetch-tags: true

- if: inputs.REPO_STATUS == ''
- if: env.REPO_STATUS == ''
name: "Check Repo Visibility"
uses: credfeto/action-repo-visibility@v1.2.0
id: visibility
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish-release.yml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ jobs:
fetch-depth: 0
fetch-tags: true

- if: inputs.REPO_STATUS == ''
- if: env.REPO_STATUS == ''
name: "Check Repo Visibility"
uses: credfeto/action-repo-visibility@v1.2.0
id: visibility
4 changes: 3 additions & 1 deletion .github/workflows/create-prs-for-stale-branches.yml
Original file line number Diff line number Diff line change
@@ -67,6 +67,7 @@ jobs:
BRANCH: ${{matrix.branch}}
CREATE_DRAFT: true
REPO_STATUS: private

steps:
- name: "Initialise Workspace"
if: startsWith(runner.name, 'buildagent-')
@@ -81,7 +82,8 @@ jobs:
ref: main
repository: ${{github.repository}}

- name: "Check Repo Visibility"
- if: env.REPO_STATUS == ''
name: "Check Repo Visibility"
if: github.repository_owner != 'funfair-tech'
uses: credfeto/action-repo-visibility@v1.2.0
id: visibility
4 changes: 3 additions & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ concurrency:
env:
HEAD_REF: ${{github.head_ref}}
BASE_REF: ${{github.base_ref}}
REPO_STATUS: private
jobs:
info:
if: endsWith(github.repository, '-template')
@@ -296,7 +297,8 @@ jobs:
shell: bash
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"

- name: "Check repo visibility"
- if: env.REPO_STATUS == ''
name: "Check repo visibility"
uses: credfeto/action-repo-visibility@v1.2.0
id: visibility
with:
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ jobs:
run: echo "COMMIT_MSG=$(git log -1 --pretty=%B)" >> "$GITHUB_ENV"

- name: "Check Repo Visibility"
if: steps.findPr.outputs.number == ''
if: env.REPO_STATUS == '' &&steps.findPr.outputs.number == ''
uses: credfeto/action-repo-visibility@v1.2.0
id: visibility
with:

0 comments on commit 6cf70b2

Please sign in to comment.