Skip to content

Commit

Permalink
Use actions-ecosystem/action-release-label to get latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
n7st committed Jun 16, 2023
1 parent 3d7e604 commit 9c22092
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ jobs:
container:
image: 'n7st/distzilla:5.37.0'
steps:
- name: 'Get git version'
run: git --version
- name: 'Check out the code'
uses: 'actions/checkout@v3'
- uses: actions-ecosystem/action-release-label@v1
id: release-label
if: ${{ github.event.pull_request.merged == true }}
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
if: ${{ steps.release-label.outputs.level != null }}
- name: 'Check out the code'
uses: 'actions/checkout@v3'
with:
ref: ${GITHUB_REF#refs/*/}
ref: ${{ steps.release-label.outputs.level }}
- name: 'Install dependencies'
run: |
dzil authordeps --missing | xargs -n 5 -P 10 cpanm --no-interactive --notest --quiet
Expand Down

0 comments on commit 9c22092

Please sign in to comment.