diff --git a/.github/workflows/branch_name_test.yml b/.github/workflows/branch_name_test.yml new file mode 100644 index 0000000000..0fac5498fe --- /dev/null +++ b/.github/workflows/branch_name_test.yml @@ -0,0 +1,17 @@ +name: Example Workflow + +on: + pull_request: + +jobs: + example_job: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set branch name as env var + run: echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV + + - name: Use branch name + run: echo "The branch name is $BRANCH_NAME"