Anyone know how to dynamically pass the name of the branch that triggered the workflow into the uses key?
Example
# my workflow
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run on branch
- uses: {org}/{repo}@{branch-name}
My repo is a Github Action. When I create a new branch to make changes to the action I have tests that run the action. But without specifying the branch name they run on the master branch, with the old code, instead of the branch that triggered the workflow.