File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,24 @@ jobs:
18
18
19
19
get-branch-name :
20
20
runs-on : ubuntu-latest
21
+ outputs :
22
+ branch_name : ${{ steps.set_branch_name.outputs.branch_name }}
21
23
steps :
22
24
- name : Checkout code
23
25
uses : actions/checkout@v3
24
26
25
27
- name : Get deleted branch name
26
- run : echo "DELETED_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
28
+ id : set_branch_name
29
+ run : |
30
+ echo "DELETED_BRANCH_NAME=${GITHUB_REF#refs/heads/}"
31
+ echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
32
+ echo "::set-output name=branch_name::${GITHUB_REF#refs/heads/}"
27
33
28
34
remove-demoenv :
29
- if : contains(env.DELETED_BRANCH_NAME, 'demoenv')
35
+ needs : get-branch-name
36
+ if : contains(needs.get-branch-name.outputs.branch_name, 'demoenv')
30
37
runs-on : ubuntu-latest
31
-
38
+
32
39
steps :
33
40
- name : Checkout code
34
41
uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments