Skip to content

Commit

Permalink
chore: squash workflow, so it shows up in Actions tab
Browse files Browse the repository at this point in the history
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
kevaundray committed May 29, 2024
1 parent 3f464af commit 83a5e2f
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-and-upload.yml
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 }}
30 changes: 30 additions & 0 deletions .github/workflows/download-and-test.yml
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

0 comments on commit 83a5e2f

Please sign in to comment.