Skip to content

Commit

Permalink
Test action
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Dec 21, 2024
1 parent 20371e8 commit 75a72c2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,20 @@ jobs:
git fetch --no-tags --prune --depth=2
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD || true)
echo "$CHANGED_FILES"
echo "build_all=$(echo "$CHANGED_FILES" | grep -qE '^.github/workflows/build_packages.yml' && echo true || echo false)" >> $GITHUB_OUTPUT
if echo "$CHANGED_FILES" | grep -qE '^.github/workflows/build_packages.yml'; then
echo "build_all=true" >> $GITHUB_OUTPUT
else
echo "build_all=false" >> $GITHUB_OUTPUT
fi
echo ">>> OUTPUT CONTENT <<<"
cat $GITHUB_OUTPUT
- name: Verify build_all
run: |
cat $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Debug build_all
run: |
echo "build_all=${{ steps.changes.outputs.build_all }}"
- name: Set matrix
id: set-matrix
run: |
Expand Down

0 comments on commit 75a72c2

Please sign in to comment.