Skip to content

Commit

Permalink
Add commit_hash to end to end test
Browse files Browse the repository at this point in the history
  • Loading branch information
mojganii committed Oct 30, 2024
1 parent 72b4281 commit 97ae7fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ios-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 97ae7fc

Please sign in to comment.