File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ name: release
22
33on :
44 workflow_dispatch :
5- pull_request :
6-
5+ push :
6+ branches :
7+ - main
78
89jobs :
910 collect-modules :
@@ -29,11 +30,14 @@ jobs:
2930 strategy :
3031 matrix :
3132 module : ${{fromJson(needs.collect-modules.outputs.modules)}}
33+ fail-fast : false
3234
3335 steps :
3436 - uses : actions/checkout@v4
3537
3638 - uses : cloudsmith-io/cloudsmith-cli-action@v1.0.3
39+ with :
40+ api-key : ${{ secrets.CLOUDSMITH_API_KEY }}
3741
3842 - name : Fetch tags
3943 run : git fetch --prune --tags
7276
7377 cloudsmith push terraform \
7478 elastio/public \
75- --api-key $CLOUDSMITH_API_KEY \
7679 --republish \
7780 terraform-${module_name}-${module_version}.tar.gz
7881
8386 module_version=${{ steps.module-info.outputs.module_version }}
8487
8588 git tag $module_name-$module_version
86- # git push origin $module_name-$module_version
89+ git push origin $module_name-$module_version
90+
91+ - name : Create release summary
92+ if : steps.module-info.outputs.tag_exists == 'false'
93+ run : |
94+ echo "### Module: ${{ steps.module-info.outputs.module_name }}" >> $GITHUB_STEP_SUMMARY
95+ echo "- Version: ${{ steps.module-info.outputs.module_version }}" >> $GITHUB_STEP_SUMMARY
96+ echo "- Status: Published ✅" >> $GITHUB_STEP_SUMMARY
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments