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

Bridge test to work with sha #780

Merged
merged 11 commits into from
Dec 11, 2024
Merged
Changes from 8 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
19 changes: 12 additions & 7 deletions .github/workflows/e2e-test-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
types: [completed]
workflow_dispatch:
inputs:
run_id:
description: "Run id from which artifacts are taken"
run_sha:
description: "Sha commit from which artifacts are taken"
required: true

jobs:
Expand All @@ -19,9 +19,9 @@ jobs:
id: retrieve-run-id
run: |
if [[ -n "${{ github.event_name == 'workflow_dispatch' }}" ]]; then
echo "run_id=${{ github.event.inputs.run_id }}" >> $GITHUB_OUTPUT
echo "run_sha=${{ github.event.inputs.run_sha }}" >> $GITHUB_OUTPUT
else
echo "run_id=${{ github.event.workflow_run.id }}" >> $GITHUB_OUTPUT
echo "run_sha=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_OUTPUT
fi
- name: Recognize sha ref
id: sharef
Expand Down Expand Up @@ -93,13 +93,18 @@ jobs:
id: check_date
run: |
date --version
- name: Check output
id: check_output
run: |
echo ${{ steps.retrieve-run-id.outputs.run_sha }}
- name: Download build artifact from triggered workflow
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v7
with:
run_id: ${{ steps.retrieve-run-id.outputs.run_id }}
commit: ${{ steps.retrieve-run-id.outputs.run_sha }}
workflow: release.yml
name: binaries
path: target/release
search_artifacts: true
allow_forks: true
girazoki marked this conversation as resolved.
Show resolved Hide resolved
- name: "Make binaries executable"
shell: bash
run: |
Expand Down
Loading