@@ -36,15 +36,20 @@ jobs:
36
36
git commit -m 'Update SBOM'
37
37
git push -u origin ${{ github.event.inputs.version_number }}
38
38
- name : Tag Commit and Push to remote
39
+ env :
40
+ VERSION_NUMBER : ${{ github.event.inputs.version_number }}
39
41
run : |
40
- git tag ${{ github.event.inputs.version_number }} -a -m "coreJSON Library ${{ github.event.inputs.version_number }} "
42
+ git tag "$VERSION_NUMBER" -a -m "coreJSON Library $VERSION_NUMBER "
41
43
git push origin --tags
42
44
- name : Verify tag on remote
45
+ env :
46
+ VERSION_NUMBER : ${{ github.event.inputs.version_number }}
47
+ COMMIT_ID : ${{ github.event.inputs.commit_id }}
43
48
run : |
44
- git tag -d ${{ github.event.inputs.version_number }}
49
+ git tag -d "$VERSION_NUMBER"
45
50
git remote update
46
- git checkout tags/${{ github.event.inputs.version_number }}
47
- git diff ${{ github.event.inputs.commit_id }} tags/${{ github.event.inputs.version_number }}
51
+ git checkout tags/"$VERSION_NUMBER"
52
+ git diff "$COMMIT_ID" tags/"$VERSION_NUMBER"
48
53
create-zip :
49
54
needs : tag-commit
50
55
name : Create ZIP and verify package for release asset.
@@ -67,13 +72,15 @@ jobs:
67
72
zip -r coreJSON-${{ github.event.inputs.version_number }}.zip coreJSON -x "*.git*"
68
73
ls ./
69
74
- name : Validate created ZIP
75
+ env :
76
+ VERSION_NUMBER : ${{ github.event.inputs.version_number }}
70
77
run : |
71
78
mkdir zip-check
72
- mv coreJSON-${{ github.event.inputs.version_number }} .zip zip-check
79
+ mv coreJSON-"$VERSION_NUMBER" .zip zip-check
73
80
cd zip-check
74
- unzip coreJSON-${{ github.event.inputs.version_number }}. zip -d coreJSON-${{ github.event.inputs.version_number }}
75
- ls coreJSON-${{ github.event.inputs.version_number }}
76
- diff -r -x "*.git*" coreJSON-${{ github.event.inputs.version_number }} /coreJSON/ ../coreJSON/
81
+ unzip coreJSON-"$VERSION_NUMBER". zip -d coreJSON-"$VERSION_NUMBER"
82
+ ls coreJSON-"$VERSION_NUMBER"
83
+ diff -r -x "*.git*" coreJSON-"$VERSION_NUMBER" /coreJSON/ ../coreJSON/
77
84
cd ../
78
85
- name : Build
79
86
run : |
0 commit comments