Skip to content

Commit

Permalink
fix: scheduled releases (#31)
Browse files Browse the repository at this point in the history
* fix: use functioning release tag action

* fix: use newer latest release tag action
  • Loading branch information
ElioDiNino authored Jan 25, 2024
1 parent d821a6d commit b836c86
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ jobs:

- name: Get latest release tag
id: latest-release
uses: Lukacs5/[email protected]
uses: joutvhu/get-release@v1
with:
latest: true
env:
GITHUB_TOKEN: ${{ github.token }}
if: ${{ github.event_name == 'schedule' }}

# base release is the release without any security patch suffix
Expand All @@ -98,9 +102,9 @@ jobs:
- name: Get base release tag
id: base-release
run: |
echo "base-release=$(echo '${{ steps.latest-release.outputs.latest-release }}' | sed -r 's/(-[0-9]{8})$//')" >> $GITHUB_OUTPUT
echo "base-release=$(echo '${{ steps.latest-release.outputs.tag_name }}' | sed -r 's/(-[0-9]{8})$//')" >> $GITHUB_OUTPUT
- name: print release tag
- name: Print release tag
run: |
echo "${{ steps.base-release.outputs.base-release }}"
if: ${{ github.event_name == 'schedule' }}
Expand All @@ -111,7 +115,7 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
submodules: recursive
ref: ${{ steps.latest-release.outputs.latest-release }}
ref: ${{ steps.latest-release.outputs.tag_name }}
if: ${{ github.event_name == 'schedule' }}
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit b836c86

Please sign in to comment.