We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ff591a commit db19be2Copy full SHA for db19be2
.github/workflows/previews-ods-ui.yaml
@@ -23,6 +23,10 @@ jobs:
23
steps:
24
- name: Checkout
25
uses: actions/checkout@v5
26
+ # Fetch the full history for the branch to be able to get the short SHA
27
+ with:
28
+ ref: ${{ github.head_ref }}
29
+ fetch-depth: 0
30
31
- name: Set up kubectl
32
uses: azure/setup-kubectl@v4
@@ -35,8 +39,8 @@ jobs:
35
39
- name: Configure some variables
36
40
id: vars
37
41
run: |
38
- echo "short_sha=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT
- echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}" >> $GITHUB_OUTPUT
42
+ echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
43
+ echo "branch=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
44
45
- name: Configure cluster context
46
0 commit comments