Skip to content

Protected Branches #156

Protected Branches

Protected Branches #156

Workflow file for this run

name: Protected Branches
on:
pull_request:
branches:
- main
- release-*
push:
branches:
- main
- release-*
schedule:
- cron: '0 8 * * 2'
concurrency:
group: ${{ github.ref == 'refs/heads/main' && format('ignore-main-{0}', github.run_id) || format('{0}-{1}', github.workflow, github.ref_name) }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/build-rock.yaml
scan:
needs: build
uses: ./.github/workflows/scan-rock.yaml
integration-tests:
needs: build
uses: ./.github/workflows/integration-tests.yaml
publish:
if: github.ref_name == 'main' || startsWith(github.ref_name, 'release-')
needs: [scan, build, integration-tests]
uses: ./.github/workflows/publish-rock.yaml