Skip to content

Commit

Permalink
Add is_tag parameter to reusable artifact job
Browse files Browse the repository at this point in the history
  • Loading branch information
paytoncain committed Jul 31, 2024
1 parent da42b8b commit f367b17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
ref:
required: true
type: string

is_tag:
required: true
type: boolean

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -434,7 +437,7 @@ jobs:
- name: Update branch release
uses: eine/tip@master
with:
tag: ${{ inputs.ref }}
tag: ${{ inputs.is_tag == true && inputs.ref || format('{0}-latest', inputs.ref) }}
rm: true
token: ${{ secrets.RELEASE_PAT }}
files: release/*
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ jobs:
uses: ./.github/workflows/build-artifacts.yml
with:
ref: ${{ github.ref_name }}
is_tag: false
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/perform-incremental-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ jobs:
uses: ./.github/workflows/build-artifacts.yml
with:
ref: ${{ needs.release.outputs.tag }}
is_tag: true
secrets: inherit

0 comments on commit f367b17

Please sign in to comment.