File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name: Update Arm Learning Path Roadmap Project Dates
2+
3+ on:
4+ project_item:
5+ types:
6+ - created
7+ - edited
8+
9+ jobs:
10+ update-dates:
11+ runs-on: ubuntu-latest
12+ steps:
13+ - name: Update Start Date
14+ if: ${{ github.event.changes.fields['Status'] == 'In Progress' }}
15+ run: |
16+ gh api graphql -f query='
17+ mutation($id: ID!, $date: String!) {
18+ updateProjectV2ItemFieldValue(
19+ input: {
20+ projectId: "PVT_kwDOBVR2-M4A2QVf",
21+ itemId: $id,
22+ fieldId: "PVTF_lADOBVR2-M4A2QVfzgrvSF4",
23+ value: $date
24+ }
25+ ) {
26+ projectV2Item {
27+ id
28+ }
29+ }
30+ }' -f id="${{ github.event.project_item.node_id }}" -f date="$(date -u +%Y-%m-%d)"
31+
32+ - name: Update Publish Date
33+ if: ${{ github.event.changes.fields['Status'] == 'Done' }}
34+ run: |
35+ gh api graphql -f query='
36+ mutation($id: ID!, $date: String!) {
37+ updateProjectV2ItemFieldValue(
38+ input: {
39+ projectId: "PVT_kwDOBVR2-M4A2QVf",
40+ itemId: $id,
41+ fieldId: "PVTF_lADOBVR2-M4A2QVfzgrvSMA",
42+ value: $date
43+ }
44+ ) {
45+ projectV2Item {
46+ id
47+ }
48+ }
49+ }' -f id="${{ github.event.project_item.node_id }}" -f date="$(date -u +%Y-%m-%d)"
You can’t perform that action at this time.
0 commit comments