Skip to content

Commit

Permalink
fix: 🐛 Updated tag selection logic in beta-ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
realashleybailey committed Nov 8, 2023
1 parent 37cf77f commit 1add277
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/beta-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,28 @@ jobs:

# Get the tag name
- name: Get tag name
id: tag
id: tag_event
if: github.event.inputs.tag == '' || github.event.inputs.tag == null
uses: dawidd6/action-get-tag@v1
with:
strip_v: true

# Fallback to github.event.inputs.tag if tag is empty
- name: Fallback to github.event.inputs.tag if tag is empty
if: steps.tag.outputs.tag == ''
id: tag_input
if: github.event.inputs.tag != '' && github.event.inputs.tag != null
run: echo "::set-output name=tag::${{ github.event.inputs.tag }}"

# Select the tag to use
- name: Select the tag to use
id: tag
run: |
if [ -z "${{ steps.tag_event.outputs.tag }}" ]; then
echo "::set-output name=tag::${{ steps.tag_input.outputs.tag }}"
else
echo "::set-output name=tag::${{ steps.tag_event.outputs.tag }}"
fi
# Create manifest list and push
- name: Create manifest list and push to Registry
working-directory: /tmp/digests
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

# Setup Node.js
Expand Down

0 comments on commit 1add277

Please sign in to comment.