Skip to content

Commit 01466ae

Browse files
committed
test
1 parent b65cd7b commit 01466ae

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: release
22

33
on:
44
workflow_dispatch:
5-
pull_request:
6-
5+
push:
6+
branches:
7+
- main
78

89
jobs:
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
@@ -72,7 +76,6 @@ jobs:
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
@@ -83,4 +86,11 @@ jobs:
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

scripts/.releaserc.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)