Skip to content

Commit 8bd8f3a

Browse files
committed
Refactor GitHub Actions release workflow to remove tag retrieval step and streamline release creation process.
1 parent 8ea8e5f commit 8bd8f3a

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,10 @@ jobs:
4040
- name: Build project
4141
run: pnpm run build
4242

43-
- name: Get tag name
44-
id: get_tag
45-
run: |
46-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
47-
echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
48-
else
49-
echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
50-
fi
51-
5243
- name: Create Release
44+
if: github.ref_type == 'tag'
5345
uses: softprops/action-gh-release@v2
5446
with:
55-
tag_name: ${{ steps.get_tag.outputs.tag }}
56-
name: Release ${{ steps.get_tag.outputs.tag }}
5747
body: |
5848
## Changes in this Release
5949
@@ -64,7 +54,3 @@ jobs:
6454
6555
- `extension.tar` - ArgoCD extension package
6656
files: ./dist/extension.tar
67-
draft: false
68-
prerelease: false
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)