Update github variable to work with tags #164
5
.github/workflows/tests.yaml
vendored
5
.github/workflows/tests.yaml
vendored
@ -36,15 +36,14 @@ jobs:
|
|||||||
- name: Output variables to files
|
- name: Output variables to files
|
||||||
run: |
|
run: |
|
||||||
echo $GITHUB_REPOSITORY > /tmp/git_repository
|
echo $GITHUB_REPOSITORY > /tmp/git_repository
|
||||||
echo $GITHUB_REF_NAME > /tmp/git_head_ref
|
[ -z "$GITHUB_HEAD_REF" ] && echo $GITHUB_REF_NAME > /tmp/git_head_ref || echo $GITHUB_HEAD_REF > /tmp/git_head_ref
|
||||||
echo "-----BEGIN OPENSSH PRIVATE KEY-----" >> /tmp/key
|
echo "-----BEGIN OPENSSH PRIVATE KEY-----" >> /tmp/key
|
||||||
echo ${{ env.BUILD_KEY }} >> /tmp/key
|
echo ${{ env.BUILD_KEY }} >> /tmp/key
|
||||||
echo "-----END OPENSSH PRIVATE KEY-----" >> /tmp/key
|
echo "-----END OPENSSH PRIVATE KEY-----" >> /tmp/key
|
||||||
chmod 400 /tmp/key
|
chmod 400 /tmp/key
|
||||||
cat /tmp/git_repository
|
cat /tmp/git_repository
|
||||||
cat /tmp/git_head_ref
|
cat /tmp/git_head_ref
|
||||||
echo $GITHUB_REF
|
echo
|
||||||
echo $GITHUB_HEAD_REF
|
|
||||||
|
|
||||||
- name: Raw SCP
|
- name: Raw SCP
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user