Skip to content

Commit

Permalink
fix workflow (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
floryn90 authored Jan 19, 2025
2 parents e1d0fcc + 4784192 commit 942cfa5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ jobs:
username: floryn90
password: ${{ secrets.DOCKER_TOKEN }}

- name: Get previous release tag
id: release_tag
shell: bash
run: |
releases=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/gohugoio/hugo/releases?per_page=1&page=1)
release_tag=$(echo $releases | jq '.[0].tag_name' | sed 's/v//g' | sed 's/"//g')
echo "Latest release tag is ${release_tag}"
echo "latest_release_tag=${release_tag}" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.TOKEN_GITHUB }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand All @@ -83,7 +72,7 @@ jobs:
path: target

- name: Push edge images
if: "!startsWith(github.ref, 'refs/tags/')"
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
shell: bash
run: make push-edge

Expand Down

0 comments on commit 942cfa5

Please sign in to comment.