Skip to content

test

test #7

Workflow file for this run

name: test
on: [workflow_dispatch]
jobs:
check-version:
runs-on: ubuntu-latest
steps:
- name: Get release version
run: echo VERSION=$(curl -s https://services.sonarr.tv/v1/releases | jq -r '."v4-stable".version') >> $GITHUB_ENV
- name: Print release version
run: echo $VERSION
- name: Get repo version
id: repo
run: |
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 == "" }}

Check failure on line 21 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 21, Col: 13): Unexpected symbol: '""'. Located at position 16 within expression: env.VERSION == ""
run: echo building new image because version mismatch