summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorSteffen Ernst <steffen.ernst@mullvad.net>2025-05-13 09:20:21 +0200
committerBug Magnet <marco.nikic@mullvad.net>2025-05-26 16:27:43 +0200
commitd1c550e4eca36f89af16ef82517f34647090f1cc (patch)
tree01166946dc1cb66b48a1e6c999380800b4e6a1cd /.github
parent119926e1bf8f71262c2841f3da37123e81e602b3 (diff)
downloadmullvadvpn-d1c550e4eca36f89af16ef82517f34647090f1cc.tar.xz
mullvadvpn-d1c550e4eca36f89af16ef82517f34647090f1cc.zip
Fix checkout step needs to be in workflow
Diffstat (limited to '.github')
-rw-r--r--.github/actions/ios/setup-project-toolchain/action.yml20
-rw-r--r--.github/workflows/ios-screenshots-creation.yml3
-rw-r--r--.github/workflows/ios-screenshots-tests.yml3
-rw-r--r--.github/workflows/ios-validate-build-schemas.yml3
-rw-r--r--.github/workflows/ios.yml3
5 files changed, 12 insertions, 20 deletions
diff --git a/.github/actions/ios/setup-project-toolchain/action.yml b/.github/actions/ios/setup-project-toolchain/action.yml
index 4334b22d2c..db053370ae 100644
--- a/.github/actions/ios/setup-project-toolchain/action.yml
+++ b/.github/actions/ios/setup-project-toolchain/action.yml
@@ -8,30 +8,10 @@ inputs:
- aarch64-apple-ios-sim
- aarch64-apple-ios
required: true
- commit_hash:
- type: string
- required: false
runs:
using: 'composite'
steps:
- - name: Set commit hash or default to github.sha
- id: set-commit-hash
- run: |
- # If the input has a value, it is filled by that value; otherwise, use github.sha
- if [ -n "${{ inputs.commit_hash }}" ]; then
- echo "COMMIT_HASH=${{ inputs.commit_hash }}" >> $GITHUB_ENV
- else
- echo "COMMIT_HASH=${{ github.sha }}" >> $GITHUB_ENV
- fi
- shell: bash
-
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- clean: true
- ref: ${{ env.COMMIT_HASH }}
-
- name: Checkout submodules
run: |
git config --global --add safe.directory '*'
diff --git a/.github/workflows/ios-screenshots-creation.yml b/.github/workflows/ios-screenshots-creation.yml
index 3e0e387e27..d226ab5121 100644
--- a/.github/workflows/ios-screenshots-creation.yml
+++ b/.github/workflows/ios-screenshots-creation.yml
@@ -21,6 +21,9 @@ jobs:
TEST_ACCOUNT: ${{ secrets.IOS_TEST_ACCOUNT_NUMBER }}
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
- name: Setup project
uses: ./.github/actions/ios/setup-project-toolchain
with:
diff --git a/.github/workflows/ios-screenshots-tests.yml b/.github/workflows/ios-screenshots-tests.yml
index 7c0311f8ac..17e3545fe1 100644
--- a/.github/workflows/ios-screenshots-tests.yml
+++ b/.github/workflows/ios-screenshots-tests.yml
@@ -25,6 +25,9 @@ jobs:
TEST_ACCOUNT: ${{ secrets.IOS_TEST_ACCOUNT_NUMBER }}
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
- name: Setup project
uses: ./.github/actions/ios/setup-project-toolchain
with:
diff --git a/.github/workflows/ios-validate-build-schemas.yml b/.github/workflows/ios-validate-build-schemas.yml
index 4fe5cc9d5d..cfc22466a2 100644
--- a/.github/workflows/ios-validate-build-schemas.yml
+++ b/.github/workflows/ios-validate-build-schemas.yml
@@ -26,6 +26,9 @@ jobs:
SOURCE_PACKAGES_PATH: .spm
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
- name: Setup project
uses: ./.github/actions/ios/setup-project-toolchain
with:
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index ecdad1e4e2..94cf5c4494 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -52,6 +52,9 @@ jobs:
env:
SOURCE_PACKAGES_PATH: .spm
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
- name: Setup project
uses: ./.github/actions/ios/setup-project-toolchain
with: