I have two workflows defined in my .github/actions/workflows folder: self_hosted.yml and github_hosted.yml
The trigger for self_hosted.yml is defined as follows:
name: Self-hosted Build and Test on: pull_request: branches: # Run on PR's on selected branches matching the filter # So 'aakash/feature_x' would match # As would 'self-hosted/better-dimensions' # See details at https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet - self-hosted/** - aakash/**
The trigger for github_hosted.yml is defined as follows:
name: Build and Test on: push: # Run on pushes to master branches: - master pull_request: # Run on pull requests to any branch except a few chosen ones we want to send to the self-hosted runner workflow branches-ignore: - self-hosted/** - aakash/**
The problem I’m facing is this: when I open a new pull request (to land my working branch on master), it always runs the github_hosted.yml workflow and not my self_hosted.yml workflow, even though I name my branches like so:
Doubly confusing because these branch names should match the branches-ignore filter on github_hosted.yml and not run there.