@@ -69,76 +69,62 @@ jobs:
6969 - name : Close Stale Issues Scheduled Event
7070 if : github.event.schedule == '0 1 * * *'
7171 run : |
72- cat > payload.json << 'EOF'
73- ${{ toJson(github.event) }}
74- EOF
75- github-event-processor ${{ github.event_name }} payload.json CloseStaleIssues
72+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseStaleIssues
7673 shell : bash
7774 env :
7875 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7976
8077 - name : Identify Stale PullRequests Scheduled Event
8178 if : github.event.schedule == '0 5 * * FRI'
8279 run : |
83- cat > payload.json << 'EOF'
84- ${{ toJson(github.event) }}
85- EOF
86- github-event-processor ${{ github.event_name }} payload.json IdentifyStalePullRequests
80+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} IdentifyStalePullRequests
8781 shell : bash
8882 env :
8983 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9084
9185 - name : Close Stale PullRequests Scheduled Event
9286 if : github.event.schedule == '30 2,8,14,20 * * *'
9387 run : |
94- cat > payload.json << 'EOF'
95- ${{ toJson(github.event) }}
96- EOF
97- github-event-processor ${{ github.event_name }} payload.json CloseStalePullRequests
88+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} CloseStalePullRequests
9889 shell : bash
9990 env :
10091 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10192
10293 - name : Identify Stale Issues Scheduled Event
10394 if : github.event.schedule == '30 3,9,15,21 * * *'
10495 run : |
105- cat > payload.json << 'EOF'
106- ${{ toJson(github.event) }}
107- EOF
108- github-event-processor ${{ github.event_name }} payload.json IdentifyStaleIssues
96+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} IdentifyStaleIssues
10997 shell : bash
11098 env :
11199 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112100
113101 - name : Close Addressed Issues Scheduled Event
114102 if : github.event.schedule == '30 4,10,16,22 * * *'
115103 run : |
116- cat > payload.json << 'EOF'
117- ${{ toJson(github.event) }}
118- EOF
119- github-event-processor ${{ github.event_name }} payload.json CloseAddressedIssues
104+ github-event-processor ${{ github.event_name }} ${{ github.event_path }}
120105 shell : bash
121106 env :
122107 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123108
124109 - name : Lock Closed Issues Scheduled Event
125110 if : github.event.schedule == '30 5,11,17,23 * * *'
126111 run : |
127- cat > payload.json << 'EOF'
128- ${{ toJson(github.event) }}
129- EOF
130- github-event-processor ${{ github.event_name }} payload.json LockClosedIssues
112+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} LockClosedIssues
131113 shell : bash
132114 env :
133115 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
134116
135117 - name : Enforce Max Life of Issues Scheduled Event
136118 if : github.event.schedule == '0 18 * * 1,3,5'
137119 run : |
138- cat > payload.json << 'EOF'
139- ${{ toJson(github.event) }}
140- EOF
141- github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues
120+ github-event-processor ${{ github.event_name }} ${{ github.event_path }} EnforceMaxLifeOfIssues
142121 shell : bash
143122 env :
144123 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
124+
125+ - name : Archive github event data
126+ uses : actions/upload-artifact@v4
127+ if : always()
128+ with :
129+ name : event
130+ path : ${{ github.event_path }}
0 commit comments