Skip to content

Commit

Permalink
test stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
punoko committed Apr 17, 2024
1 parent e613cbe commit 6c87041
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ jobs:
- name: Get repo version
id: repo
run: |
REPO=$(curl --silent \
--header "Authorization: Bearer $(echo -n ${{ secrets.GITHUB_TOKEN }} | base64)" \
--url https://ghcr.io/v2/${{ github.repository_owner }}/sonarr/tags/list |
jq -r '.tags[]' | grep $VERSION) >> $GITHUB_ENV
continue-on-error: true
echo VERSION=$(curl -s -H "Authorization: Bearer $(echo -n ${{ secrets.GITHUB_TOKEN }} | base64)" https://ghcr.io/v2/${{ github.repository_owner }}/sonarr/tags/list | jq -r '.tags[]' | grep $VERSION || true) >> $GITHUB_ENV
- name: Build image
if: ${{ env.VERSION != env.REPO }}
if: ${{ env.VERSION == "" }}
run: echo building new image because version mismatch

0 comments on commit 6c87041

Please sign in to comment.