Skip to content

Commit

Permalink
trying out github.sha
Browse files Browse the repository at this point in the history
  • Loading branch information
jblom committed Oct 3, 2024
1 parent 851725b commit e27d2fb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ jobs:
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: Add sha to GITHUB_OUTPUT
id: git-sha-short
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Setup Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
run: echo "sha=$(echo {{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT

- name: Get Visibility
id: visibility
Expand Down

0 comments on commit e27d2fb

Please sign in to comment.