USWDS-Team - POAM: Test dynamic date workflow #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing - POAM w/ dynamic dates | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_REPO: ${{ github.repository }} | ||
TITLE: TEST - ${{ DATE }} | ||
Check failure on line 9 in .github/workflows/TEST-dynamic-dates.yml GitHub Actions / Testing - POAM w/ dynamic datesInvalid workflow file
|
||
LABELS: "Role: Dev,Type: Task,Status: Triage" | ||
BODY: | | ||
# Summary | ||
POAM update tracker for ${{ DATE }} | ||
- [ ] USWDS | ||
- [ ] USWDS-Site | ||
- [ ] Web-Components | ||
- [ ] USWDS-Compile | ||
- [ ] USWDS-Sandbox | ||
- [ ] USWDS-Tutorial | ||
- [ ] Public Sans | ||
jobs: | ||
create_issue: | ||
name: Create monthly POAM issue | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
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") | ||
- 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 }} |