add release

This commit is contained in:
2025-09-08 14:20:35 +02:00
parent 2281556eed
commit 42f96f8a26

View File

@@ -71,8 +71,33 @@ jobs:
echo "Extracted application version: $VERSION" echo "Extracted application version: $VERSION"
echo "change=$CHANGE" >> $GITHUB_OUTPUT echo "change=$CHANGE" >> $GITHUB_OUTPUT
echo "Has changes to release? $CHANGE" echo "Has changes to release? $CHANGE"
- name: Debug outputs
run: |
echo "Change output: ${{ steps.project.outputs.change }}"
echo "Fail input: ${{ inputs.FAIL_FOR_NO_CHANGES }}"
if [ "${{ steps.project.outputs.change }}" = "false" ]; then
echo "✅ steps.project.outputs.change is 'false'"
else
echo "❌ steps.project.outputs.change is NOT 'false'"
fi
if [ "${{ steps.project.outputs.change }}" = 'false' ]; then
echo "✅ steps.project.outputs.change is 'false'"
else
echo "❌ steps.project.outputs.change is NOT 'false'"
fi
if [ "${{ inputs.FAIL_FOR_NO_CHANGES }}" = "true" ]; then
echo "✅ inputs.FAIL_FOR_NO_CHANGES is 'true'"
else
echo "❌ inputs.FAIL_FOR_NO_CHANGES is NOT 'true'"
fi
if [ "${{ inputs.FAIL_FOR_NO_CHANGES }}" = 'true' ]; then
echo "✅ inputs.FAIL_FOR_NO_CHANGES is 'true'"
else
echo "❌ inputs.FAIL_FOR_NO_CHANGES is NOT 'true'"
fi
- name: Fail workflow if there are no changes - name: Fail workflow if there are no changes
if: steps.project.outputs.change == 'false' && inputs.FAIL_FOR_NO_CHANGES == true if: steps.project.outputs.change == 'false' && inputs.FAIL_FOR_NO_CHANGES == 'true'
run: | run: |
echo "No changes to release, failing..." echo "No changes to release, failing..."
exit 1 exit 1