Skip to content

Commit 147d0bb

Browse files
authored
Update platform-project-automation.yml
1 parent 1f139da commit 147d0bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/platform-project-automation.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
name: Add area/platform issue to Platform Project
2020
steps:
2121
- name: Set current date env var
22-
run: echo "CURRENT_DATE=$(date +'%D')"
22+
id: set_date
23+
run: echo ::set-output name=CURRENT_DATE::$(date +'%D')
24+
2325
- name: Add issue to project if labelled with area/platform
2426
uses: leonsteinhaeuser/project-beta-automations@v1.1.0
2527
if: contains(github.event.issue.labels.*.name, 'area/platform')
@@ -29,4 +31,4 @@ jobs:
2931
project_id: ${{ env.PROJECT_ID }}
3032
resource_node_id: ${{ github.event.issue.node_id }}
3133
operation_mode: custom_field
32-
custom_field_values: '[{\"name\": \"Status\",\"type\": \"single_select\",\"value\": \"${{ env.STATUS_TODO }}\"},{\"name\": \"${{ env.FIELD_DATE_ADDED }}\",\"type\": \"date\",\"value\": \"${{ env.CURRENT_DATE }}\"}]'
34+
custom_field_values: '[{\"name\": \"Status\",\"type\": \"single_select\",\"value\": \"${{ env.STATUS_TODO }}\"},{\"name\": \"${{ steps.set_date.outputs.CURRENT_DATE }}\",\"type\": \"date\",\"value\": \"${{ env.CURRENT_DATE }}\"}]'

0 commit comments

Comments
 (0)