File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Deploy specified artifact as a branch
2
2
on :
3
3
workflow_call :
4
4
inputs :
5
+ environment :
6
+ required : true
7
+ type : string
5
8
artifact_name :
6
9
required : true
7
10
type : string
13
16
type : string
14
17
jobs :
15
18
deploy-artifact-as-branch :
19
+ environment :
20
+ name : ${{ inputs.environment }}
21
+ url : ${{ github.server_url }}/${{ github.repository }}/tree/${{ inputs.target_branch }}
16
22
runs-on : ubuntu-latest
17
23
steps :
18
24
- name : Checkout `${{ inputs.target_branch }}` branch
Original file line number Diff line number Diff line change 7
7
name : Deploy to `npm` branch
8
8
needs : ci
9
9
if : github.ref == 'refs/heads/main'
10
- environment :
11
- name : npm-branch
12
- url : https://github.com/graphql/graphql-js/tree/npm
13
10
uses : ./.github/workflows/deploy-artifact-as-branch.yml
14
11
with :
12
+ environment : npm-branch
15
13
artifact_name : npmDist
16
14
target_branch : npm
17
15
commit_message : " Deploy ${{github.event.workflow_run.head_sha}} to 'npm' branch"
20
18
name : Deploy to `deno` branch
21
19
needs : ci
22
20
if : github.ref == 'refs/heads/main'
23
- environment :
24
- name : deno-branch
25
- url : https://github.com/graphql/graphql-js/tree/deno
26
21
uses : ./.github/workflows/deploy-artifact-as-branch.yml
27
22
with :
23
+ environment : deno-branch
28
24
artifact_name : denoDist
29
25
target_branch : deno
30
26
commit_message : " Deploy ${{github.event.workflow_run.head_sha}} to 'deno' branch"
You can’t perform that action at this time.
0 commit comments