Skip to content

Commit

Permalink
Fix acceptance-ee failing on forks
Browse files Browse the repository at this point in the history
The acceptance-ee job is failing on the forked repo anytime someone makes a PR, which results in annoying notifications to the contributor. The fix is to only run the job if the repo is in the gitlabhq org.
  • Loading branch information
armsnyder committed Feb 11, 2021
1 parent 6bf68ef commit 1f544e5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
acceptance-ee:
timeout-minutes: 60
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
if: github.event_name == 'push' && github.repository_owner == 'gitlabhq'
steps:
- name: Set up Go
uses: actions/setup-go@v1
Expand All @@ -38,10 +38,7 @@ jobs:
- name: Set up Enterprise Edition License file
run: |
openssl version
mkdir license
[[ -n "${{ secrets.LICENSE_ENCRYPTION_PASSWORD }}" ]] && echo decrypt
[[ -n "${{ secrets.LICENSE_ENCRYPTION_PASSWORD }}" ]] && openssl enc -d -aes-256-cbc -pbkdf2 -iter 20000 -in Gitlab-license.encrypted -out Gitlab-license.txt -pass "pass:${{ secrets.LICENSE_ENCRYPTION_PASSWORD }}"
chmod 666 Gitlab-license.txt || true
openssl enc -d -aes-256-cbc -pbkdf2 -iter 20000 -in Gitlab-license.encrypted -out Gitlab-license.txt -pass "pass:${{ secrets.LICENSE_ENCRYPTION_PASSWORD }}"
- name: Start Gitlab
run: make testacc-up SERVICE=gitlab-ee
Expand Down

0 comments on commit 1f544e5

Please sign in to comment.