Skip to content

Commit 7198a8f

Browse files
feat: add pinact workflow
1 parent 8da497c commit 7198a8f

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/__pinact.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
# Run pinact on the org or a repo
3+
4+
name: Pinact
5+
permissions: {}
6+
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
dryRun:
11+
description: 'Dry run mode. If true, will not push changes or create pull requests.'
12+
required: false
13+
default: false
14+
type: boolean
15+
includeForks:
16+
description: 'Include forked repositories when processing an organization. Has no effect when repo is specified.'
17+
required: false
18+
default: false
19+
type: boolean
20+
pinactRepo:
21+
description: 'Repository to use for pinact. Allows using a fork. Format: owner/repo.'
22+
required: false
23+
default: 'suzuki-shunsuke/pinact'
24+
type: string
25+
pinactVersion:
26+
description: 'Version of pinact to use.'
27+
required: false
28+
default: 'latest'
29+
type: string
30+
repo:
31+
description: |
32+
Specific repository to run pinact on (format: owner/repo).
33+
If specified, runs only on this repo instead of all org repos.
34+
required: false
35+
default: ''
36+
type: string
37+
38+
jobs:
39+
pinact:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: discord
43+
uses: LizardByte/actions/actions/pinact@master
44+
with:
45+
dryRun: ${{ github.event.inputs.dryRun }}
46+
gitAuthorEmail: ${{ secrets.GH_BOT_EMAIL }}
47+
gitAuthorName: ${{ secrets.GH_BOT_NAME }}
48+
githubOrg: ${{ github.repository_owner }}
49+
includeForks: ${{ github.event.inputs.includeForks }}
50+
pinactConfig: |
51+
---
52+
version: 3
53+
ignore_actions:
54+
- name: ${{ github.repository_owner }}/.*
55+
ref: master
56+
separator: " # "
57+
pinactRepo: ${{ github.event.inputs.pinactRepo }}
58+
pinactVersion: ${{ github.event.inputs.pinactVersion }}
59+
repo: ${{ github.event.inputs.repo }}
60+
token: ${{ secrets.GH_BOT_TOKEN }}

0 commit comments

Comments
 (0)