-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.25 KB
/
TEST-dynamic-dates.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
42
43
name: Testing - POAM w/ dynamic dates
on:
pull_request:
workflow_dispatch:
jobs:
create_issue:
name: Create monthly POAM issue
runs-on: ubuntu-latest
steps:
- name: Dynamically set DATE environment variable
run: echo "DATE=$(date '+%B %Y')" >> $GITHUB_ENV
- name: Create monthly POAM issue
run: |
new_issue_url=$(gh issue create \
--title "$TITLE" \
--assignee "$ASSIGNEES" \
--label "$LABELS" \
--body "$BODY")
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
TITLE: TEST - ${{ env.DATE }}
LABELS: "Role: Dev,Type: Task,Status: Triage"
BODY: |
# Summary
POAM update tracker for ${{ env.DATE }}
- [ ] USWDS
- [ ] USWDS-Site
- [ ] Web-Components
- [ ] USWDS-Compile
- [ ] USWDS-Sandbox
- [ ] USWDS-Tutorial
- [ ] Public Sans
- name: Add issue to project board
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/uswds/projects/8
github-token: ${{ secrets.ADD_TO_PROJECT }}