Skip to content

Commit

Permalink
Get branch name in Bash
Browse files Browse the repository at this point in the history
Toward #755.
  • Loading branch information
waldoj committed Dec 6, 2021
1 parent cbcb79f commit c53d4b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
- uses: Firenza/[email protected]
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
Expand Down

0 comments on commit c53d4b9

Please sign in to comment.