mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 21:37:41 +00:00
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Push Downstream
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
push-downstream:
|
|
timeout-minutes: 5
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/github-script@v7
|
|
env:
|
|
ACTOR: ${{ github.actor }}
|
|
AUTHOR: ${{ github.event.head_commit.author.name }}
|
|
MESSAGE: ${{ github.event.head_commit.message }}
|
|
SHA: ${{ github.sha }}
|
|
with:
|
|
github-token: ${{ secrets.DOWNSTREAM_TOKEN }}
|
|
script: |
|
|
const { ACTOR, AUTHOR, MESSAGE, SHA } = process.env;
|
|
const result = await github.rest.actions.createWorkflowDispatch({
|
|
owner: '${{ secrets.DOWNSTREAM_OWNER }}',
|
|
repo: '${{ secrets.DOWNSTREAM_REPO_V2 }}',
|
|
workflow_id: '${{ secrets.DOWNSTREAM_WORKFLOW_ID_V2 }}',
|
|
ref: 'main',
|
|
inputs: {
|
|
actor: ACTOR,
|
|
author: AUTHOR,
|
|
message: MESSAGE,
|
|
sha: SHA
|
|
}
|
|
});
|