Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commit_hash to end to end test #7093

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -6,12 +6,15 @@
contents: read
issues: write
pull-requests: write
on:

Check warning on line 9 in .github/workflows/ios-end-to-end-tests.yml

View workflow job for this annotation

GitHub Actions / check-formatting

9:1 [truthy] truthy value should be one of [false, true]
workflow_call:
inputs:
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 @@
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/[email protected]
Expand Down
Loading