When I push some code to master, one workflow file runs. This file builds the artifacts and pushes the code to another branch production.
Another workflow file, which looks like the following, is set to run when any push happens to production.
name: Deploy
on:
push:
branches:
- production
jobs:
# Do something
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
But this workflow file is never run. I expect that when the workflow file, listening to push event on master, is done, this file should run as the previous file pushes code to production branch. How do I make sure that this happens?