Skip to content

Commit

Permalink
Test action cron
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Dec 10, 2024
1 parent 8bdd63a commit ce20db5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ jobs:
run: |
git fetch --all --prune
matching_branches=$(git branch -r | grep -E "origin/(release/v[0-9]+|hotfix/v[0-9]+|feature/cron-build-packages)" | sed 's|origin/||')
json_branches=$(echo $matching_branches | sed 's/ /","/g')
json_branches=$(echo "$matching_branches" | awk '{gsub(" ", "\",\""); print}')
json_output="[\"$json_branches\"]"
echo "branches=$(echo $matching_branches | tr ' ' ',')" >> $GITHUB_OUTPUT
- name: Debug Output
run: |
echo "matching_branches: $matching_branches"
echo "json_branches: $json_branches"
echo "json_output: $json_output"
- name: Debug json_output
run: |
echo "Generated json_output: ${{ steps.list-branches.outputs.json_output }}"
Expand Down

0 comments on commit ce20db5

Please sign in to comment.