Skip to content

Commit 9c86239

Browse files
authored
Create workflows.yml
1 parent 317f1ee commit 9c86239

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)