File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments