Skip to content

Commit

Permalink
fix(workflows): use find to get changed actions in release-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
neilime committed Mar 22, 2023
1 parent 4a5b8a2 commit 402576a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
FORCE_UPDATE="${{ steps.changed-variables.outputs.force-update }}"
CHANGED_ACTIONS=()
for FILE in actions/**/action.yml; do
for FILE in $(find actions -name "action.yml" -type f); do
ACTION_HAS_CHANGED=$([[ "$CHANGED_FILES" == *"$FILE"* ]] && echo "true" || echo "false")
SHOULD_UPDATE_FILE=$([[ "$FORCE_UPDATE" = "true" || "$ACTION_HAS_CHANGED" = "true" ]] && echo "true" || echo "false")
echo "::debug::File $FILE has changed: $ACTION_HAS_CHANGED, should update file: $SHOULD_UPDATE_FILE"
Expand Down

0 comments on commit 402576a

Please sign in to comment.