Skip to content

Instantly share code, notes, and snippets.

@hbt
Last active September 19, 2021 06:50
Show Gist options
  • Save hbt/4f56917e252e0e5637a71a3f07036fc8 to your computer and use it in GitHub Desktop.
Save hbt/4f56917e252e0e5637a71a3f07036fc8 to your computer and use it in GitHub Desktop.
name: push
defaults:
run:
shell: bash
on:
push:
branches: [main, develop, staging] # // TODO(hbt) NEXT rm staging branch - only relevant because we don't want to merge current work into develop
jobs:
callworkflow:
name: call workflow
runs-on: ubuntu-latest
steps:
- name: Invoke workflow without inputs
uses: benc-uk/workflow-dispatch@v1
with:
workflow: deploy
token: ${{ secrets.GH_TOKEN }} # // TODO(hbt) NEXT Token must have read/write perms
inputs: '{ "prefix": "HASSEN", "refName": "staging" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment