Skip to content

Merge to stage

Merge to stage #19

Workflow file for this run

name: Merge to stage
on:
schedule:
- cron: '0 */4 * * *' # Run every 4 hours
workflow_dispatch: # Allow manual trigger
env:
MILO_RELEASE_SLACK_WH: ${{ secrets.MILO_RELEASE_SLACK_WH }}
REQUIRED_APPROVALS: ${{ secrets.REQUIRED_APPROVALS }}
SLACK_HIGH_IMPACT_PR_WEBHOOK: ${{ secrets.SLACK_HIGH_IMPACT_PR_WEBHOOK }}
jobs:
merge-to-stage:
runs-on: ubuntu-latest
environment: milo_pr_merge
steps:
- uses: actions/[email protected]
id: milo-pr-merge-token
with:
app-id: ${{ secrets.MILO_PR_MERGE_APP_ID }}
private-key: ${{ secrets.MILO_PR_MERGE_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/[email protected]
- name: Merge to stage or queue to merge
uses: actions/[email protected]
with:
script: |
const main = require('./.github/workflows/merge-to-stage.js')
main({ github, context, core })
env:
GITHUB_TOKEN: ${{ steps.milo-pr-merge-token.outputs.token }}