File tree Expand file tree Collapse file tree 2 files changed +95
-6
lines changed
Expand file tree Collapse file tree 2 files changed +95
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : ' Project'
4+ on :
5+ workflow_run :
6+ workflows :
7+ - ' Triage'
8+ types :
9+ - completed
10+
11+
12+ permissions :
13+ contents : read
14+ actions : read
15+
16+
17+ jobs :
18+
19+ prepare-project-triage :
20+ name : Project Triage
21+ runs-on : ubuntu-latest
22+ outputs :
23+ triage_event_name : ${{ steps.triage-output.outputs.triage_event_name }}
24+ triage_event_action : ${{ steps.triage-output.outputs.triage_event_action }}
25+ triage_item_number : ${{ steps.triage-output.outputs.triage_item_number }}
26+ triage_item_url : ${{ steps.triage-output.outputs.triage_item_url }}
27+ steps :
28+
29+ # # Additional Steps
30+
31+ - name : Fetch triage Details
32+ uses : actions/download-artifact@v4
33+ with :
34+ name : triage-details-project
35+ run-id : ${{ github.event.workflow_run.id }}
36+
37+
38+ - name : Set Outputs
39+ id : triage-output
40+ shell : bash
41+ run : |
42+ cat triage_details-project.txt > $GITHUB_OUTPUT
43+
44+
45+ project :
46+ name : Project
47+ needs :
48+ - prepare-project-triage
49+ uses : nofusscomputing/action_project/.github/workflows/project.yaml@development
50+ with :
51+ PROJECT_URL : https://github.com/orgs/nofusscomputing/projects/3
52+ TRIAGE_EVENT_NAME : ${{ needs.prepare-project-triage.outputs.triage_event_name }}
53+ TRIAGE_EVENT_ACTION : ${{ needs.prepare-project-triage.outputs.triage_event_action }}
54+ TRIAGE_ITEM_NUMBER : ${{ needs.prepare-project-triage.outputs.triage_item_number }}
55+ TRIAGE_ITEM_URL : ${{ needs.prepare-project-triage.outputs.triage_item_url }}
56+ secrets :
57+ WORKFLOW_TOKEN : ${{ secrets.WORKFLOW_TOKEN }}
Original file line number Diff line number Diff line change 2727jobs :
2828
2929
30+
3031 project :
31- name : Project
32- uses : nofusscomputing/action_project/.github/workflows/project.yaml@development
33- with :
34- PROJECT_URL : https://github.com/orgs/nofusscomputing/projects/3
35- secrets :
36- WORKFLOW_TOKEN : ${{ secrets.WORKFLOW_TOKEN }}
32+ name : Fetch Triage Details
33+ runs-on : ubuntu-latest
34+ steps :
35+
36+ - name : Collect Triage Details
37+ shell : bash
38+ run : |
39+ echo "triage_event_name=${{ github.event_name }}" > triage_details-project.txt;
40+ echo "triage_event_action=${{ github.event.action }}" >> triage_details-project.txt;
41+
42+ if [ "${{ github.event_name }}" == 'pull_request' ]; then
43+
44+ echo "triage_item_number=${{ github.event.pull_request.number }}" >> triage_details-project.txt;
45+
46+ echo "triage_item_url=https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}" >> triage_details-project.txt;
47+
48+ else
49+
50+ echo "triage_item_number=${{ github.event.issue.number }}" >> triage_details-project.txt;
51+
52+ echo "triage_item_url=https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}" >> triage_details-project.txt;
53+
54+ fi;
55+
56+
57+ echo "[Debug]************************************";
58+
59+ cat triage_details-project.txt;
60+
61+ echo "[Debug]************************************";
62+
63+
64+ - name : Upload Triage Data
65+ uses : actions/upload-artifact@v4
66+ with :
67+ name : triage-details-project
68+ path : triage_details-project.txt
3769
You can’t perform that action at this time.
0 commit comments