File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,14 @@ jobs:
4747 run : npm test
4848
4949 - name : Check whether to run integration tests
50- env :
51- GITHUB_TOKEN : ${{ secrets.CLEARLYDEFINED_GITHUB_PAT }}
50+ if : ${{ github.event_name == 'schedule' && github.repository != 'clearlydefined/operations' }}
5251 run : |
53- HAS_ADMIN=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/${{ github.repository }} | jq '.permissions.admin')
54- if [ "$HAS_ADMIN" = "true" ]; then
55- echo "The token has admin rights."
56- else
57- echo "The token does NOT have admin rights."
58- exit 1
59- fi
60-
52+ echo "Repository: ${{ github.repository }}, Event: ${{ github.event_name }}"
53+ echo "Running scheduled integration tests only on clearlydefined/operations."
54+ exit 1
55+
6156 - name : Trigger harvest and verify completion if required
62- if : github.event.inputs.doHarvest == 'true' || github.event.inputs.doHarvest == null || matrix.dynamicCoordinates == 'true'
57+ if : ${{ github.event.inputs.doHarvest == 'true' || github.event.inputs.doHarvest == null || matrix.dynamicCoordinates == 'true' }}
6358 run : DYNAMIC_COORDINATES=${{ matrix.dynamicCoordinates }} npm run e2e-test-harvest
6459
6560 - name : Verify service functions
You can’t perform that action at this time.
0 commit comments