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 14, 2024
1 parent 2195a4b commit a82a48c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: 4testing multiarch-cron-build
on:
schedule:
- cron: '0 20 * * *'
push:
branches:
- 'feature/cron-build-oci'

jobs:

Expand All @@ -26,7 +29,7 @@ jobs:
echo "$all_branches" | grep '^develop$'
} | sed 's/^/"/; s/$/"/'
)
echo "json_output=[${matching_branches//$'\n'/,}]" >> $GITHUB_OUTPUT
echo "json_output=[${matching_branches//$'\n'/,}]" | sed 's/"/\\"/g' >> $GITHUB_OUTPUT
echo "branches=${matching_branches//$'\n'/ }" | tr -d '[]\"' >> $GITHUB_OUTPUT
- name: Determine Priority Branch
Expand Down Expand Up @@ -58,7 +61,7 @@ jobs:
--data '{
"ref": "'"${{ github.ref_name }}"'",
"inputs": {
"branches": "[\"develop\", \"hotfix/v3.0.1\", \"release/v3.0.0\"]"
"branches": "${{ steps.list-branches.outputs.json_output }}"
}
}'
Expand Down

0 comments on commit a82a48c

Please sign in to comment.