-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: squash workflow, so it shows up in Actions tab
commit ede2ece Author: Kevaundray Wedderburn <[email protected]> Date: Wed May 29 19:38:51 2024 +0100 chore: add on-pull-request commit 92ef6c7 Author: Kevaundray Wedderburn <[email protected]> Date: Wed May 29 19:36:05 2024 +0100 chore: checkout experimental branch commit e2438b4 Author: Kevaundray Wedderburn <[email protected]> Date: Wed May 29 19:33:33 2024 +0100 chore: rename file commit 4f616d5 Author: Kevaundray Wedderburn <[email protected]> Date: Wed May 29 19:32:04 2024 +0100 chore: add initial testing code
- Loading branch information
1 parent
3f464af
commit 83a5e2f
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Upload Artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- kw/ci-release-workflow-revamp | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
upload: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: kw/ci-release-workflow-revamp | ||
|
||
- name: Create example.txt | ||
run: echo "This is an example file." > example.txt | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: example-artifact | ||
path: example.txt | ||
|
||
- name: Dispatch to test workflow | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: download-and-test.yml | ||
ref: kw/ci-release-workflow-revamp | ||
inputs: '{"run_id": "${{ github.run_id }}"}' | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Download and Process | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
run_id: | ||
description: 'The run ID of the triggering workflow' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: kw/ci-release-workflow-revamp | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: example-artifact | ||
path: example.txt | ||
run-id: ${{ github.event.inputs.run_id }} | ||
|
||
- name: Display file content | ||
run: cat example.txt |