title: Add and run GitHub Actions on feature branch?
body: <p>I'm currently using the &quot;git-flow&quot; branching model outlined <a href="https://nvie.com/posts/a-successful-git-branching-model/" rel="nofollow noreferrer">here</a>. Following that model, once I've completed work on a feature branch, I'd like to add new GitHub actions to that branch (for example, to run my feaure's automated tests) before the branch is merged.</p>
  <p>Following the branching model, I don't want to define the actions in a workflow file on the default branch <em>before</em> that feature branch is merged into it. Ideally I want to add the actions on the feature branch itself before the merge, but this doesn't appear to work.</p>
  <p>I've added the below sample workflow to my feature branch, but GitHub does not detect it. Am I missing something here, or can workflows only detected and run once they're on the default branch? If the latter is true, do people generally merge their branches, <em>then</em> add workflows for them?</p>
  <pre><code># Name workflow
  name: Test workflow
  
  # Read only permissions
  permissions: read-all
  
  # Triggered once every 15 minutes
  on:
    workflow_dispatch:
    schedule:
      - cron: '15 * * * *'
  
  # Listing of jobs to be run
  jobs:
  
    # Just output the Python version for now.
    python-tests:
      name: Python Tests
      runs-on: ubuntu-latest
      
      # Use the environment configured with secrets
      environment: python-test-environment
      
      # Set the working directory?
      defaults:
        run:
          working-directory: tests
         
      steps:
        # Checkout the repository
        - name: Checkout
          uses: actions/checkout@v2
          ref: 'dev-tests'
        
        # Configure Python
        - name: Set up Python 3.7
          uses: actions/setup-python@v2
          with:
            python-version: 3.7
        
        # Output the Python version
        - name: Display version
          run: python -c &quot;import sys; print(sys.version)&quot;
  </code></pre>
  <p><strong>Update:</strong> I can see now that the &quot;schedule&quot; trigger <em>only</em> works on the default branch. However, removing it and just using the workflow_dispatch trigger still (on the feature branch YML file) still does not show the workflow on GitHub.</p>