Paths-Ignore seems to be working after all

This commit is contained in:
2024-03-01 14:31:18 -06:00
parent 6a78dc986d
commit 60adf6c0f8

View File

@@ -23,27 +23,6 @@ jobs:
packages: write packages: write
steps: steps:
- name: Check changes
id: changes
run: |
# Get the list of changed files
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
# Check if ONLY a specific file has changed
SPECIFIC_FILE=".gitea/commit.yaml"
if [ "$CHANGED_FILES" = "$SPECIFIC_FILE" ]; then
echo "Only the specific file has changed: $SPECIFIC_FILE"
echo "::set-output name=files_changed::false"
else
echo "Other files have changed, stopping the workflow"
echo "::set-output name=files_changed::true"
fi
- name: Run on specific changes
if: steps.changes.outputs.files_changed != 'true'
run: echo "Beginning build"
#Testing change to this file
- name: Prepare the container - name: Prepare the container
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh run: curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh