-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.49 KB
/
create-update-iteration-plan.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Create or Update Iteration Plan
on:
issues:
types: [opened, edited, deleted, transferred, pinned, unpinned, closed, reopened, assigned, unassigned, labeled, unlabeled, locked, unlocked, milestoned, demilestoned]
jobs:
create-update-issue:
runs-on: ubuntu-latest
steps:
- name: Log event details
run: |
echo "Event: ${{ github.event_name }}"
echo "Action: ${{ github.event.action }}"
echo "Issue: ${{ github.event.issue.title }} ${{ github.event.issue.number }}"
- name: Check issue title
id: check_title
run: echo "skip=$(echo '${{ github.event.issue.title }}' | grep -q 'Iteration Plan for' && echo true || echo false)" >> $GITHUB_OUTPUT
# run: echo "::set-output name=skip::$(echo '${{ github.event.issue.title }}' | grep -q 'Iteration Plan for' && echo true || echo false)"
- name: Check out the repository
if: steps.check_title.outputs.skip == 'false'
uses: actions/checkout@v2
- name: Set up Node.js
if: steps.check_title.outputs.skip == 'false'
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
if: steps.check_title.outputs.skip == 'false'
run: npm install --prefix .github/workflows
- name: Run GitHub Script
if: steps.check_title.outputs.skip == 'false'
run: node .github/workflows/github.js
env:
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}