Skip to content

Commit 83a5e2f

Browse files
committed
chore: squash workflow, so it shows up in Actions tab
commit ede2ece Author: Kevaundray Wedderburn <kevtheappdev@gmail.com> Date: Wed May 29 19:38:51 2024 +0100 chore: add on-pull-request commit 92ef6c7 Author: Kevaundray Wedderburn <kevtheappdev@gmail.com> Date: Wed May 29 19:36:05 2024 +0100 chore: checkout experimental branch commit e2438b4 Author: Kevaundray Wedderburn <kevtheappdev@gmail.com> Date: Wed May 29 19:33:33 2024 +0100 chore: rename file commit 4f616d5 Author: Kevaundray Wedderburn <kevtheappdev@gmail.com> Date: Wed May 29 19:32:04 2024 +0100 chore: add initial testing code
1 parent 3f464af commit 83a5e2f

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Upload Artifacts
2+
3+
on:
4+
push:
5+
branches:
6+
- kw/ci-release-workflow-revamp
7+
workflow_dispatch:
8+
pull_request:
9+
10+
jobs:
11+
upload:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
ref: kw/ci-release-workflow-revamp
19+
20+
- name: Create example.txt
21+
run: echo "This is an example file." > example.txt
22+
23+
- name: Upload artifact
24+
uses: actions/upload-artifact@v3
25+
with:
26+
name: example-artifact
27+
path: example.txt
28+
29+
- name: Dispatch to test workflow
30+
uses: benc-uk/workflow-dispatch@v1
31+
with:
32+
workflow: download-and-test.yml
33+
ref: kw/ci-release-workflow-revamp
34+
inputs: '{"run_id": "${{ github.run_id }}"}'
35+
token: ${{ secrets.GITHUB_TOKEN }}
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Download and Process
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
run_id:
8+
description: 'The run ID of the triggering workflow'
9+
required: true
10+
type: string
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
ref: kw/ci-release-workflow-revamp
21+
22+
- name: Download artifact
23+
uses: actions/download-artifact@v4
24+
with:
25+
name: example-artifact
26+
path: example.txt
27+
run-id: ${{ github.event.inputs.run_id }}
28+
29+
- name: Display file content
30+
run: cat example.txt

0 commit comments

Comments
 (0)