Skip to content

Commit

Permalink
GHA: embrace the jank
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Oct 1, 2024
1 parent 6d6f11f commit 297f16c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Build PR
name:

# read-write repo token
# access to secrets
on:
workflow_dispatch:
inputs:
pr_number:
description: 'Pull Request Number'
required: true
type: string
pull_request:
workflow_run:
workflows: ["Trigger PR Build"]
types:
- completed

concurrency:
group: pr-${{ github.event.inputs.pr_number || github.event.pull_request.number }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/trigger-pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Trigger PR Build

on:
workflow_dispatch:
inputs:
pr_number:
description: 'Pull Request Number'
required: true
type: string
pull_request:

concurrency:
group: pr-${{ github.event.inputs.pr_number || github.event.pull_request.number }}
cancel-in-progress: false

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- name: Do the thing
run: echo "Hello World"

0 comments on commit 297f16c

Please sign in to comment.