mirror of
https://github.com/saltstack/salt.git
synced 2025-04-10 23:01:39 +00:00
21 lines
647 B
Django/Jinja
21 lines
647 B
Django/Jinja
|
|
|
|
<%- set job_name = "trigger-branch-{}-builds".format(workflow_slug) %>
|
|
|
|
<{ job_name }>:
|
|
<%- do conclusion_needs.append(job_name) %>
|
|
name: Trigger Branch Workflows
|
|
if: ${{ github.event_name == 'schedule' && fromJSON(needs.workflow-requirements.outputs.requirements-met) }}
|
|
runs-on: ubuntu-22.04
|
|
needs:
|
|
- workflow-requirements
|
|
|
|
steps:
|
|
<%- for branch in release_branches %>
|
|
|
|
- name: Trigger <{ branch }> branch
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
gh workflow run <{ workflow_slug }>.yml --repo ${{ github.repository }} --ref <{ branch }>
|
|
<%- endfor %>
|