diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 0f30514..5da55c1 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -24,9 +24,13 @@ jobs: } || { echo 'Release tag set correctly: ${{ steps.tag.outputs.version }}'; exit 0 } - - name: Compare tag with existing package version + - name: Lookup tag within existing package versions run: | - true + curl -X 'GET' \ + 'https://code.spamasaurus.com/api/v1/packages/djpbessems/container/filestash-enterprise' \ + -H 'accept: application/json' \ + -H 'Authorization: token ${{ secrets.GIT_APIKEY }}' | + jq -r 'any(.[].version; . == "${{ steps.tag.outputs.version }}")' build_container: name: Container image