-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a dispatch workflow for main/master pushes (#17291)
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |