Send ref to the hook instead of trying to get a git branch
@@ -51,10 +51,6 @@ jobs:
id: slug
run: echo "::set-output name=sha7::$(echo ${GITHUB_SHA} | cut -c1-8)"
- - name: Get the current branch name
- id: branch
- run: echo "::set-output name=name::${GITHUB_REF#refs/heads/}"
-
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
@@ -99,6 +95,6 @@ jobs:
event_type: deploy-lbrytv
client_payload: |
tag: sha-${{ steps.slug.outputs.sha7 }}
- branch: ${{ steps.myref.branch.name }}
+ ref: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.DEPLOYMENT_REPO_TOKEN }}
