Fix release bumper action
process only release-1.* branches
avoid failing the whole job on each branch failure
@@ -25,7 +25,7 @@ jobs:
- id: set_branches
run: |
- matrix=$(git for-each-ref --format='%(refname:short)' refs/remotes/origin | grep -e "origin/main" -e "origin/release-[[:digit:]]\+.[[:digit:]]\+" | sed -r 's/origin\/(.*)/{"branch": "\1"}/g' | jq -s)
+ matrix=$(git for-each-ref --format='%(refname:short)' refs/remotes/origin | grep -e "origin/main" -e "origin/release-1.[0-9]\+$" | sed -r 's/origin\/(.*)/{"branch": "\1"}/g' | jq -s)
echo "::set-output name=matrix::{\"branches\":$(echo $matrix)}"
bump_components_version:
@@ -35,6 +35,7 @@ jobs:
needs: set_bump_branches
strategy:
matrix: ${{fromJson(needs.set_bump_branches.outputs.matrix)}}
+ fail-fast: false
steps:
- uses: actions/checkout@v2
with:
