Skip to content

Commit

Permalink
Unit packaging: only check for github org
Browse files Browse the repository at this point in the history
  • Loading branch information
thresheek committed Mar 29, 2024
1 parent 4346db8 commit bfd7789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
deb-packaging:
if: ${{ ( github.repository_owner == 'nginx' || github.repository == 'nginxinc' ) && github.event_name == 'push' && ( github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ) }}
if: ${{ ( github.repository_owner == 'nginx' || github.repository == 'nginxinc' ) }}
runs-on: [ self-hosted, "${{ matrix.os }}-${{ matrix.arch }}" ]
strategy:
fail-fast: false
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
done
if [ $org_found$event_found$ref_found -ne 111 ]; then
echo "Repository owner, event, or ref are not explicitely allowed to use this workflow: $GITHUB_REPOSITORY_OWNER, $GITHUB_EVENT_NAME, $GITHUB_REF"
exit 1
exit 0
fi
- name: dump the environment
Expand Down

0 comments on commit bfd7789

Please sign in to comment.