Skip to content

USWDS-Team - POAM: Test dynamic date workflow #9

USWDS-Team - POAM: Test dynamic date workflow

USWDS-Team - POAM: Test dynamic date workflow #9

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

View workflow run for this annotation

GitHub Actions / Testing - POAM w/ dynamic dates

Invalid workflow file

The workflow is not valid. .github/workflows/TEST-dynamic-dates.yml (Line: 9, Col: 10): Unrecognized named-value: 'DATE'. Located at position 1 within expression: DATE .github/workflows/TEST-dynamic-dates.yml (Line: 11, Col: 9): Unrecognized named-value: 'DATE'. Located at position 1 within expression: DATE
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 }}