11name : Acceptance Tests (github.com)
22
33on :
4- workflow_dispatch :
5- # push:
4+ workflow_dispatch : # push:
5+
66 # branches:
77 # - main
88 # - release-v*
@@ -25,15 +25,18 @@ permissions: read-all
2525jobs :
2626 test :
2727 name : Test ${{ matrix.mode }}
28- if : (github.event_name != 'pull_request' && github.event_name != 'pull_request_target') || contains(github.event.pull_request.labels.*.name, 'acctest')
28+ if : (github.event_name != 'pull_request' && github.event_name !=
29+ ' pull_request_target' ) ||
30+ contains(github.event.pull_request.labels.*.name, 'acctest')
2931 runs-on : ubuntu-latest
3032 permissions :
3133 contents : read
3234 environment :
3335 name : acctest-dotcom
36+ deployment : false
3437 strategy :
3538 matrix :
36- mode : [anonymous, individual, organization] # team, enterprise
39+ mode : [ anonymous, individual, organization ] # team, enterprise
3740 fail-fast : true
3841 max-parallel : 1
3942 defaults :
4649 - name : Check secrets
4750 if : github.event_name == 'pull_request_target'
4851 env :
49- INPUT_ALLOWED_SECRETS : ${{ vars.DOTCOM_ACCEPTANCE_TESTS_ALLOWED_SECRETS || 'GH_TEST_TOKEN' }}
52+ INPUT_ALLOWED_SECRETS : ${{ vars.DOTCOM_ACCEPTANCE_TESTS_ALLOWED_SECRETS ||
53+ ' GH_TEST_TOKEN' }}
5054 INPUT_SECRETS : ${{ toJSON(secrets) }}
5155 run : |
5256 set -eou pipefail
@@ -103,7 +107,8 @@ jobs:
103107 TF_LOG : WARN
104108 GITHUB_TOKEN : ${{ steps.credentials.outputs.token }}
105109 GITHUB_BASE_URL : https://api.github.com/
106- GITHUB_OWNER : ${{ (matrix.mode == 'individual' && vars.GH_TEST_LOGIN) || (matrix.mode == 'organization' && vars.GH_TEST_ORG_NAME) || '' }}
110+ GITHUB_OWNER : ${{ (matrix.mode == 'individual' && vars.GH_TEST_LOGIN) ||
111+ (matrix.mode == 'organization' && vars.GH_TEST_ORG_NAME) || '' }}
107112 GITHUB_USERNAME : ${{ vars.GH_TEST_LOGIN }}
108113 GITHUB_ENTERPRISE_SLUG : ${{ vars.GH_TEST_ENTERPRISE_SLUG }}
109114 GH_TEST_AUTH_MODE : ${{ matrix.mode }}
0 commit comments