File tree 1 file changed +4
-11
lines changed
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 15
15
package_dir :
16
16
- cos-csi-mounter
17
17
18
+ env :
19
+ IS_LATEST_RELEASE : true
20
+
18
21
steps :
19
22
- name : Checkout Code
20
23
uses : actions/checkout@v2
46
49
run : |
47
50
echo "Commit Message: ${{ steps.check_commit.outputs.message }}"
48
51
49
- - name : Set IS_LATEST_RELEASE Environment Variable
50
- id : set_is_latest_release
51
- run : |
52
- # Here, set IS_LATEST_RELEASE to true or false depending on need
53
- echo "IS_LATEST_RELEASE=true" >> $GITHUB_ENV
54
-
55
- - name : Check IS_LATEST_RELEASE env variable
56
- run : |
57
- echo ${{ steps.set_is_latest_release.outputs.IS_LATEST_RELEASE }}
58
-
59
52
- name : Latest Version (Tag and Release)
60
53
id : release
61
54
if : contains(steps.check_commit.outputs.message, 'publish')
69
62
body : CSR generated with SHA1 is not supported to get certs using Metadata.
70
63
71
64
- name : Label Release as Latest (if enabled)
72
- if : ${{ steps.set_is_latest_release.outputs. IS_LATEST_RELEASE == ' true' }}
65
+ if : ${{ env. IS_LATEST_RELEASE == true }}
73
66
run : |
74
67
# Tag the release as 'latest' if IS_LATEST is true
75
68
gh release edit ${{ github.ref }} --add-label latest
You can’t perform that action at this time.
0 commit comments