Skip to content

Commit

Permalink
bah
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Sep 2, 2024
1 parent 2ff14df commit 6012685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const tag = '${{ github.event.inputs.tag || github.ref.split('/').pop() }}';
const inputTag = "${{ github.event.inputs.tag }}";
const refTag = "${{ github.ref }}".split('/').pop();
const tag = inputTag || refTag;
try {
const release = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
Expand Down

0 comments on commit 6012685

Please sign in to comment.