Skip to content

Commit

Permalink
handle prs
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Nov 11, 2024
1 parent ce5dac0 commit 8cf7074
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jobs:
needs: [variables]
with:
tag: ${{ needs.variables.outputs.tag }}
test-only: 'true'

8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
tag:
required: true
type: string
test-only:
required: false
type: string
default: 'false'
outputs:
snap-basename:
value: ${{ jobs.build.outputs.snap-basename }}
Expand Down Expand Up @@ -71,7 +75,9 @@ jobs:
(( ${v1[2]} > ${v2[2]} )) && return 0
return 1
}
if is_gt $version $current_version; then
if [[ ${{ inputs.test-only }} == "true" ]]; then
run=true
elif is_gt $version $current_version; then
run=true
if [[ $candidate == 'false' ]]; then commit=true; fi
fi
Expand Down

0 comments on commit 8cf7074

Please sign in to comment.