From c53d4b97b7fc4aed4cd8529db80934b54e50e328 Mon Sep 17 00:00:00 2001 From: Waldo Jaquith Date: Sun, 5 Dec 2021 20:46:51 -0500 Subject: [PATCH] Get branch name in Bash Toward #755. --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cfd62860..47f4d784 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,12 @@ jobs: - uses: Firenza/secrets-to-env@v1.1.0 with: secrets: ${{ toJSON(secrets) }} + - name: Get branch name + shell: bash + run: echo "##[set-output name=github_branch;]$(echo ${GITHUB_REF#refs/heads/})" + id: save_branch + - name: Make branch name available as Bash variable + run: GITHUB_BRANCH=${GITHUB_REF#refs/heads/} - run: >- sudo apt-get update && sudo apt-get install -y awscli php5.6-cli php5.6-curl php5.6-memcached php5.6-mysql yarn zip