Skip to content

Commit

Permalink
Add a dispatch workflow for main/master pushes (#17291)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpfz0r authored Nov 15, 2023
1 parent a2276a8 commit d1ce053
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dispatch-main-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Request a dispatched main branch build

on:
push:
branches: [ master, main ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
dispatchedMainBuild:
name: Dispatch build
runs-on: ubuntu-latest

steps:
# TODO remove later
- name: Debug event
run: jq . "$GITHUB_EVENT_PATH"

- name: Dispatch build to graylog-project-internal
run: >
gh workflow run -R Graylog2/graylog-project-internal main-build.yml --ref master
-f caller_repo=${{ github.repository }}
-f caller_branch=${{ github.base_ref || github.ref_name }}
-f head_sha=${{ github.sha }}
-f initial_actor="${{ github.actor }}/${{ github.triggering_actor }}"
env:
GITHUB_TOKEN: ${{ secrets.PAT_GRAYLOG_PROJECT_INTERNAL_WORKFLOW_RW }}

0 comments on commit d1ce053

Please sign in to comment.