Skip to content

Commit 9248c34

Browse files
authored
Create set-project-start.yml
1 parent 9c86239 commit 9248c34

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Set Project Start Date on In Progress
2+
3+
on:
4+
workflow_dispatch: {}
5+
issues:
6+
types: [labeled]
7+
8+
permissions:
9+
contents: read
10+
issues: read
11+
12+
env:
13+
PROJECT_URL: https://github.com/orgs/invertase/projects/59
14+
START_DATE_FIELD: Start Date
15+
16+
jobs:
17+
set-start-date:
18+
if: github.event.label.name == 'in-progress'
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Today (UTC) in YYYY-MM-DD
22+
run: echo "TODAY=$(date -u +%F)" >> "$GITHUB_ENV"
23+
24+
- name: Set Start Date to today
25+
uses: EndBug/project-fields@v2
26+
with:
27+
operation: set
28+
github_token: ${{ secrets.PROJECT_PAT }}
29+
project_url: ${{ env.PROJECT_URL }}
30+
fields: ${{ env.START_DATE_FIELD }}
31+
values: ${{ env.TODAY }}

0 commit comments

Comments
 (0)