Skip to content

Commit

Permalink
Merge pull request #6 from CptOfEvilMinions/initial-cicd
Browse files Browse the repository at this point in the history
Shortened GIT branch and GIT hash code
  • Loading branch information
CptOfEvilMinions authored Dec 27, 2021
2 parents 32590ce + 523d99e commit 29eaf95
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,8 @@ jobs:

######################################## Create ZIP of build artifacts ########################################
# https://newbedev.com/getting-current-branch-and-commit-hash-in-github-action
- name: Declare GIT hash and branch
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Create ZIP of build artifacts
uses: actions/upload-artifact@v2
with:
name: osctrl-binaries-${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}.zip
name: osctrl-binaries-${GITHUB_REF#refs/heads/}-${GITHUB_SHA}.zip
path: bin

0 comments on commit 29eaf95

Please sign in to comment.