-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
26 lines (26 loc) · 913 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: "add-to-projects"
author: "dev-hato Development Team"
description: "PRやIssueをGitHub Projectsに追加する"
inputs:
github-token: # id of input
description: "GITHUB_TOKEN"
required: true
project-url:
description: "GitHub Projects URL"
required: true
runs:
using: "composite"
steps:
- name: Remove pull requests and issues from project
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
PROJECT_URL: ${{ inputs.project-url }}
with:
github-token: ${{ inputs.github-token }}
script: |
const {script} = require('${{ github.action_path }}/dist/remove_prs_and_issues.js')
await script(github)
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
with:
project-url: ${{ inputs.project-url }}
github-token: ${{ inputs.github-token }}