File tree 8 files changed +19
-19
lines changed
data/reusables/actions/jobs
8 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ permissions:
44
44
45
45
# This allows one deploy workflow to interrupt another
46
46
concurrency :
47
- group : ' preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || github.event. inputs.PR_NUMBER }}'
47
+ group : ' preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || inputs.PR_NUMBER }}'
48
48
cancel-in-progress : true
49
49
50
50
jobs :
56
56
# See https://bit.ly/3qB9nZW > If a job in a workflow is skipped due to a conditional, it will report its status as "Success".
57
57
if : |
58
58
(
59
- (github.event.pull_request.head.sha || github.event. inputs.COMMIT_REF)
60
- && (github.event.number || github.event. inputs.PR_NUMBER || github.run_id)
59
+ (github.event.pull_request.head.sha || inputs.COMMIT_REF)
60
+ && (github.event.number || inputs.PR_NUMBER || github.run_id)
61
61
)
62
62
&& (github.repository == 'github/docs-internal' || github.repository == 'github/docs')
63
63
&& github.actor != 'dependabot[bot]'
70
70
# to link a PR to a list of environments later.
71
71
url : ${{ env.APP_URL }}
72
72
env :
73
- PR_NUMBER : ${{ github.event.number || github.event. inputs.PR_NUMBER || github.run_id }}
74
- COMMIT_REF : ${{ github.event.pull_request.head.sha || github.event. inputs.COMMIT_REF }}
73
+ PR_NUMBER : ${{ github.event.number || inputs.PR_NUMBER || github.run_id }}
74
+ COMMIT_REF : ${{ github.event.pull_request.head.sha || inputs.COMMIT_REF }}
75
75
BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
76
76
IS_INTERNAL_BUILD : ${{ github.repository == 'github/docs-internal' }}
77
77
# This may also run in forked repositories, not just 'github/docs'
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ permissions:
21
21
22
22
# This allows one deploy workflow to interrupt another
23
23
concurrency :
24
- group : ' preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || github.event. inputs.PR_NUMBER }}'
24
+ group : ' preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || inputs.PR_NUMBER }}'
25
25
cancel-in-progress : true
26
26
27
27
jobs :
31
31
if : github.repository == 'github/docs-internal' || github.repository == 'github/docs'
32
32
timeout-minutes : 5
33
33
env :
34
- PR_NUMBER : ${{ github.event.number || github.event. inputs.PR_NUMBER }}
34
+ PR_NUMBER : ${{ github.event.number || inputs.PR_NUMBER }}
35
35
36
36
steps :
37
37
- name : ' Az CLI login'
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ permissions:
23
23
# This allows a subsequently queued workflow run to take priority over
24
24
# previously queued runs but NOT interrupt currently executing runs
25
25
concurrency :
26
- group : ' staging-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || github.event. inputs.PR_NUMBER }}'
26
+ group : ' staging-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || inputs.PR_NUMBER }}'
27
27
cancel-in-progress : true
28
28
29
29
jobs :
36
36
name : staging-env
37
37
url : ${{ env.APP_URL }}
38
38
env :
39
- PR_NUMBER : ${{ github.event.number || github.event. inputs.PR_NUMBER || github.run_id }}
40
- COMMIT_REF : ${{ github.event.pull_request.head.sha || github.event. inputs.COMMIT_REF }}
41
- IMAGE_REPO : ${{ github.repository }}/pr-${{ github.event.number || github.event. inputs.PR_NUMBER || github.run_id }}
39
+ PR_NUMBER : ${{ github.event.number || inputs.PR_NUMBER || github.run_id }}
40
+ COMMIT_REF : ${{ github.event.pull_request.head.sha || inputs.COMMIT_REF }}
41
+ IMAGE_REPO : ${{ github.repository }}/pr-${{ github.event.number || inputs.PR_NUMBER || github.run_id }}
42
42
RESOURCE_GROUP_NAME : docs-staging
43
43
APP_SERVICE_NAME : ghdocs-staging
44
44
SLOT_NAME : canary
Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ jobs:
39
39
- uses : ./.github/actions/node-npm-setup
40
40
41
41
- name : Purge Fastly edge cache independent of language
42
- if : ${{ github.event. inputs.nuke_all }}
42
+ if : ${{ inputs.nuke_all }}
43
43
run : .github/actions-scripts/purge-fastly-edge-cache.js
44
44
45
45
- name : Purge Fastly edge cache per language
46
- if : ${{ !github.event. inputs.nuke_all }}
46
+ if : ${{ !inputs.nuke_all }}
47
47
env :
48
- LANGUAGES : ${{ github.event. inputs.languages }}
48
+ LANGUAGES : ${{ inputs.languages }}
49
49
run : .github/actions-scripts/purge-fastly-edge-cache-per-language.js
Original file line number Diff line number Diff line change 46
46
token : ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
47
47
repository : github/semmle-code
48
48
path : semmle-code
49
- ref : ${{ github.event. inputs.SOURCE_BRANCH }}
49
+ ref : ${{ inputs.SOURCE_BRANCH }}
50
50
51
51
- uses : ./.github/actions/node-npm-setup
52
52
Original file line number Diff line number Diff line change 45
45
# will be checked out
46
46
repository : github/rest-api-description
47
47
path : rest-api-description
48
- ref : ${{ github.event. inputs.SOURCE_BRANCH }}
48
+ ref : ${{ inputs.SOURCE_BRANCH }}
49
49
50
50
- uses : ./.github/actions/node-npm-setup
51
51
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ jobs:
166
166
167
167
# Note that by default, this is '' (empty string) and that means
168
168
# the same as not set within the script.
169
- VERSION : ${{ github.event. inputs.version }}
169
+ VERSION : ${{ inputs.version }}
170
170
171
171
# The sync-search-index recognizes this env var if you don't
172
172
# use the `--popular-pags <PATH>` option.
@@ -188,7 +188,7 @@ jobs:
188
188
# Must match what we used when scraping (npm run sync-search-indices)
189
189
# otherwise the script will seek other versions from disk that might
190
190
# not exist.
191
- VERSION : ${{ github.event. inputs.version }}
191
+ VERSION : ${{ inputs.version }}
192
192
run : |
193
193
./src/search/scripts/index-elasticsearch.js /tmp/records \
194
194
--language ${{ matrix.language }} \
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Use `jobs.<job_id>.runs-on` to define the type of machine to run the job on.
32
32
33
33
jobs :
34
34
test :
35
- runs-on : [self-hosted, "${{ github.event. inputs.chosen-os }}"]
35
+ runs-on : [self-hosted, "${{ inputs.chosen-os }}"]
36
36
steps :
37
37
- run : echo Hello world!
38
38
` ` `
You can’t perform that action at this time.
0 commit comments