We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d89c48 commit a69595eCopy full SHA for a69595e
.github/workflows/ci.yml
@@ -21,6 +21,24 @@ env:
21
LINUX_BOOT_FILES_PATH: ${{ github.workspace }}/LinuxBootFiles
22
23
jobs:
24
+ find-sha:
25
+ runs-on: ubuntu-latest
26
+ steps:
27
+ - name: Find SHA of the triggering workflow (i.e. PR)
28
+ run: |
29
+ if [ "$EVENT" == 'pull_request' ]
30
+ then
31
+ echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
32
+ elif [ "$EVENT" == 'workflow_run' ]
33
34
+ echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
35
+ else
36
+ echo "::set-output name=sha::$(echo $GITHUB_SHA)"
37
+ fi
38
+ env:
39
+ EVENT: ${{ github.event_name }}
40
+ REF: ${{ github.ref }}
41
+
42
lint:
43
runs-on: "windows-2022"
44
strategy:
0 commit comments