Skip to content

Commit

Permalink
resssuable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral committed Jan 6, 2024
1 parent 4e15382 commit 2e08aae
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/job1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Reusable workflow example

on:
workflow_call:
inputs:
config-path:
required: true
type: string
secrets:
token:
required: true

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.token }}
configuration-path: ${{ inputs.config-path }}
20 changes: 20 additions & 0 deletions .github/workflows/job2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Call a reusable workflow

on:
pull_request:
branches:
- main

jobs:
call-workflow:
uses: alankritdabral/tailcall/.github/workflows/job1.yml@v1

call-workflow-passing-data:
permissions:
contents: read
pull-requests: write
uses: alankritdabral/tailcall/.github/workflows/job2.yml@main
with:
config-path: .github/labeler.yml
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2e08aae

Please sign in to comment.