diff options
| author | mojganii <mojgan.jelodar@codic.se> | 2024-10-30 08:29:58 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-10-30 10:57:20 +0100 |
| commit | 47e53492ddfdc6fc0b5828912dfe9e5d2184af9f (patch) | |
| tree | dcc7f308e70e545ee7340bd513806e4f21010cc6 /.github/workflows | |
| parent | ee37debf0a1733bacb4c3d945571e9d570278c51 (diff) | |
| download | mullvadvpn-47e53492ddfdc6fc0b5828912dfe9e5d2184af9f.tar.xz mullvadvpn-47e53492ddfdc6fc0b5828912dfe9e5d2184af9f.zip | |
Add commit_hash to end to end test
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ios-end-to-end-tests.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/ios-end-to-end-tests.yml b/.github/workflows/ios-end-to-end-tests.yml index ea80d5d0b3..4aa336dd9f 100644 --- a/.github/workflows/ios-end-to-end-tests.yml +++ b/.github/workflows/ios-end-to-end-tests.yml @@ -12,6 +12,9 @@ on: arg_tests_json_key: type: string required: false + commit_hash: + type: string + required: false workflow_dispatch: inputs: # Optionally specify a test case or suite to run. @@ -75,10 +78,21 @@ jobs: needs: set-up-outputs-directory timeout-minutes: 20 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: Configure Rust uses: actions-rs/toolchain@v1.0.6 |
