forked from hackforla/website
-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 1023 Bytes
/
move-closed-issues.yaml
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
27
28
29
30
31
32
33
name: Move Closed Issues
on:
issues:
types:
- closed
jobs:
Move-Closed-Issues:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# 1: Sort closed issues based on labels
- name: Sort Closed Issues by Label
uses: actions/github-script@v7
id: sort-closed-issues
with:
script: |
const script = require('./github-actions/move-closed-issues/sort-closed-issues.js');
const sortIssues = script({context});
return sortIssues;
result-encoding: string
# 2: Move closed issues
- name: Move Closed Issue
uses: actions/github-script@v7
id: move-closed-issue
with:
github-token: ${{ secrets.HACKFORLA_GRAPHQL_TOKEN }}
script: |
const results = '${{ steps.sort-closed-issues.outputs.result }}';
const script = require('./github-actions/move-closed-issues/move-closed-issues.js');
script({github, context}, results);