From 015d634222df6cdb9db348fa33837d78580b5d81 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Fri, 15 Dec 2023 10:45:44 -0500 Subject: [PATCH] save branch to env variable --- .github/workflows/release-prep.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-prep.yml b/.github/workflows/release-prep.yml index 1332f21a7..ea63ff5f0 100644 --- a/.github/workflows/release-prep.yml +++ b/.github/workflows/release-prep.yml @@ -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: