Skip to content

Commit

Permalink
save branch to env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Dec 15, 2023
1 parent 8580d8b commit 015d634
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release-prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
if: ${{ contains(github.event.pull_request.labels.*.name, 'release-prep') }}
runs-on: ubuntu-latest
steps:
- name: Save branch name
run: echo "branch=${GITHUB_BASE_REF}" >> $GITHUB_ENV
- name: Checkout the branch this PR wants to update
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
ref: ${{ GITHUB_BASE_REF }}
ref: env.branch
- name: Install jq to parse json
uses: awalsh128/cache-apt-pkgs-action@latest
with:
Expand Down

0 comments on commit 015d634

Please sign in to comment.