diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d2e829b591..92a5c4116d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,18 @@ on: permissions: contents: read jobs: + compare_sha: + runs-on: ubuntu-latest + name: Compare sha + steps: + - name: Compare commit ids + run: | + echo "github.sha: ${{ github.sha }}" + echo "github.event.push.head_commit.id: ${{ github.event.push.head_commit.id }}" + echo "github.event.pull_request.merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}" + echo "github.event.head_commit.id: ${{ github.event.head_commit.id }}" + echo "github.event.workflow_run.head_commit.id: ${{ github.event.workflow_run.head_commit.id }}" + build_and_push: if: ${{ github.event.workflow_run.conclusion == 'success' }} name: Build and Push diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 4eed468f194..f838f55de77 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -8,6 +8,17 @@ permissions: contents: read checks: write jobs: + compare_sha: + runs-on: ubuntu-latest + name: Compare sha + steps: + - name: Compare commit ids + run: | + echo "github.sha: ${{ github.sha }}" + echo "github.event.push.head_commit.id: ${{ github.event.push.head_commit.id }}" + echo "github.event.pull_request.merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}" + echo "github.event.head_commit.id: ${{ github.event.head_commit.id }}" + linting_and_security: name: Linting and Security env: