Skip to content

Instantly share code, notes, and snippets.

@raquelhortab
Created February 28, 2020 07:54
Show Gist options
  • Save raquelhortab/dd52e86e0b2d46748f2cd0a6ee6d20ff to your computer and use it in GitHub Desktop.
Save raquelhortab/dd52e86e0b2d46748f2cd0a6ee6d20ff to your computer and use it in GitHub Desktop.
automatic tests workflow main.yml (run tests when pushed to my-other-branch, using my-other-branch code)
name: CI
on:
push:
branches:
- my-other-branch # this references the branch on which a push should trigger the action
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: my-other-branch # this references the branch that has the action's code you want to use
name: Checkout
- uses: ./.github/actions/automatic-tests
name: Test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment