Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manually publish container image using the last commit SHA as an image tag | |
on: | |
pull_request: # run on pull requests | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Print the pr last commit SHA (shortened) | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
SHORT_SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7) | |
echo "The short commit SHA is $SHORT_SHA" |