Skip to content

Commit

Permalink
fix(CI): reference correct github event var names
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Dec 27, 2023
1 parent 109f5f1 commit da963a8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,13 @@ jobs:
- uses: rlespinasse/github-slug-action@v4
with:
prefix: CI_
- run: |
- name: Set git variables
run: |
echo "GIT_REPO_NAME=$CI_GITHUB_REPOSITORY_NAME_PART" >> $GITHUB_ENV
echo "GIT_REF=$CI_GITHUB_REF_NAME" >> $GITHUB_ENV
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "GIT_SHA=$CI_GITHUB_EVENT_PULL_REQUEST_SHA" >> $GITHUB_ENV
echo "GIT_SHA_SHORT=$CI_GITHUB_EVENT_PULL_REQUEST_SHA_SHORT" >> $GITHUB_ENV
echo "GIT_SHA=$CI_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA" >> $GITHUB_ENV
echo "GIT_SHA_SHORT=$CI_GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT" >> $GITHUB_ENV
else
echo "GIT_SHA=$CI_GITHUB_SHA" >> $GITHUB_ENV
echo "GIT_SHA_SHORT=$CI_GITHUB_SHA_SHORT" >> $GITHUB_ENV
Expand All @@ -250,7 +251,8 @@ jobs:
echo "Using Git Reference: $GIT_REF"
echo "Using Git SHA: $GIT_SHA"
echo "Using Git SHA Short: $GIT_SHA_SHORT"
- run: |
- name: Build nix images
run: |
echo "Using Git Repository Name: $GIT_REPO_NAME"
echo "Using Git Reference: $GIT_REF"
echo "Using Git SHA: $GIT_SHA"
Expand Down

0 comments on commit da963a8

Please sign in to comment.