diff --git a/action.yml b/action.yml index 275dbb8..3975aa0 100644 --- a/action.yml +++ b/action.yml @@ -24,4 +24,4 @@ runs: shell: bash run: | RESULT=$(${{ github.action_path }}/check.sh ${{ inputs.base-image }} ${{ inputs.derived-image }}) - echo "differs=$RESULT" >> $GITHUB_OUTPUT + echo "exist=$RESULT" >> $GITHUB_OUTPUT diff --git a/check.sh b/check.sh index 1da51e4..b6a32e5 100755 --- a/check.sh +++ b/check.sh @@ -2,7 +2,6 @@ set -e -BASE_LAYERS="$(skopeo inspect $1 | jq '.Layers')" -DERIVED_LAYERS="$(skopeo inspect $2 | jq '.Layers')" - -jq '.base - .derived | .!=[]' <<< "{\"base\": $BASE_LAYERS, \"derived\": $DERIVED_LAYERS}" \ No newline at end of file +TAGS=$((skopeo list-tags docker://gitea.phadric.de/andreas/sambaa || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags') +#echo $TAGS | jq '"Tag not found: "+ .[]' +echo $TAGS | jq '.==[]'