Skip to content

Commit

Permalink
Bridge test to work with sha (#780)
Browse files Browse the repository at this point in the history
* girazoki bridge test

* log

* add v7

* allow forks true

* use sha

* try again

* work with sha instead of workflow id

* log sha

* false
  • Loading branch information
girazoki authored Dec 11, 2024
1 parent 2370b9c commit ebf3c86
Showing 1 changed file with 12 additions and 7 deletions.
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: false
- name: "Make binaries executable"
shell: bash
run: |
Expand Down

0 comments on commit ebf3c86

Please sign in to comment.