From d8e509b2471a7ed520abd417d6f248b0b5c6e464 Mon Sep 17 00:00:00 2001 From: Dominik Kapusta <dkapusta@duckduckgo.com> Date: Tue, 12 Dec 2023 22:04:50 +0100 Subject: [PATCH] Fix checkout action --- .github/workflows/build_appstore.yml | 1 + .github/workflows/build_notarized.yml | 1 + .github/workflows/pr.yml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/build_appstore.yml b/.github/workflows/build_appstore.yml index 9ad2f04068..18c4eb0c00 100644 --- a/.github/workflows/build_appstore.yml +++ b/.github/workflows/build_appstore.yml @@ -68,6 +68,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive + ref: ${{ github.ref_name }} - name: Select Xcode run: sudo xcode-select -s /Applications/Xcode_$(<.xcode-version).app/Contents/Developer diff --git a/.github/workflows/build_notarized.yml b/.github/workflows/build_notarized.yml index 0e4fada7c8..e6486a1877 100644 --- a/.github/workflows/build_notarized.yml +++ b/.github/workflows/build_notarized.yml @@ -103,6 +103,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive + ref: ${{ github.ref_name }} - name: Install Apple Developer ID Application certificate uses: ./.github/actions/install-certs-and-profiles diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a5cd0cf008..d8e027eb2d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -32,6 +32,8 @@ jobs: steps: - name: Check out the code uses: actions/checkout@v3 + with: + ref: ${{ github.ref_name }} - name: Run ShellCheck uses: ludeeus/action-shellcheck@master @@ -86,6 +88,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive + ref: ${{ github.ref_name }} - name: Set cache key hash run: | @@ -259,6 +262,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive + ref: ${{ github.ref_name }} - name: Install Apple Developer ID Application certificate uses: ./.github/actions/install-certs-and-profiles