|
25 | 25 | cancel-in-progress: false
|
26 | 26 | # export variables used by reporter job
|
27 | 27 | outputs:
|
28 |
| - staled-issues: ${{ steps.staler.outputs.staled-issues-prs }} |
29 |
| - closed-issues: ${{ steps.staler.outputs.closed-issues-prs }} |
| 28 | + staled-issues: ${{ steps.stale.outputs.staled-issues-prs }} |
| 29 | + closed-issues: ${{ steps.stale.outputs.closed-issues-prs }} |
30 | 30 | # enable write access rights to allow comment and labeling by bot
|
31 | 31 | permissions:
|
32 | 32 | issues: write
|
|
55 | 55 | days-before-pr-stale: -1
|
56 | 56 | days-before-pr-close: -1
|
57 | 57 |
|
| 58 | + - name: Set outputs |
| 59 | + ## Removing private properties from each JSON object. |
| 60 | + ## TODO: Remove this ugly fix for actions/stale#806 |
| 61 | + id: stale |
| 62 | + run: | |
| 63 | + echo $STALED \ |
| 64 | + | jq --compact-output --raw-output 'del(.[] | .[to_entries[] | .key | select(startswith("_"))])' \ |
| 65 | + | sed -e 's/^/::set-output name=staled-issues-prs::/' |
| 66 | + echo $CLOSED \ |
| 67 | + | jq --compact-output --raw-output 'del(.[] | .[to_entries[] | .key | select(startswith("_"))])' \ |
| 68 | + | sed -e 's/^/::set-output name=closed-issues-prs::/' |
| 69 | + env: |
| 70 | + STALED: ${{ steps.staler.outputs.staled-issues-prs }} |
| 71 | + CLOSED: ${{ steps.staler.outputs.closed-issues-prs }} |
| 72 | + |
58 | 73 |
|
59 | 74 | process-prs:
|
60 | 75 | name: Process Pull Requests
|
|
64 | 79 | cancel-in-progress: false
|
65 | 80 | # export variables used by reporter job
|
66 | 81 | outputs:
|
67 |
| - staled-prs: ${{ steps.staler.outputs.staled-issues-prs }} |
68 |
| - closed-prs: ${{ steps.staler.outputs.closed-issues-prs }} |
| 82 | + staled-prs: ${{ steps.stale.outputs.staled-issues-prs }} |
| 83 | + closed-prs: ${{ steps.stale.outputs.closed-issues-prs }} |
69 | 84 | # enable write access rights to allow comment and labeling by bot
|
70 | 85 | permissions:
|
71 | 86 | pull-requests: write
|
@@ -95,6 +110,21 @@ jobs:
|
95 | 110 | days-before-issue-stale: -1
|
96 | 111 | days-before-issue-close: -1
|
97 | 112 |
|
| 113 | + - name: Set outputs |
| 114 | + ## Removing private properties from each JSON object. |
| 115 | + ## TODO: Remove this ugly fix for actions/stale#806 |
| 116 | + id: stale |
| 117 | + run: | |
| 118 | + echo $STALED \ |
| 119 | + | jq --compact-output --raw-output 'del(.[] | .[to_entries[] | .key | select(startswith("_"))])' \ |
| 120 | + | sed -e 's/^/::set-output name=staled-issues-prs::/' |
| 121 | + echo $CLOSED \ |
| 122 | + | jq --compact-output --raw-output 'del(.[] | .[to_entries[] | .key | select(startswith("_"))])' \ |
| 123 | + | sed -e 's/^/::set-output name=closed-issues-prs::/' |
| 124 | + env: |
| 125 | + STALED: ${{ steps.staler.outputs.staled-issues-prs }} |
| 126 | + CLOSED: ${{ steps.staler.outputs.closed-issues-prs }} |
| 127 | + |
98 | 128 |
|
99 | 129 | reporter:
|
100 | 130 | name: GitHub reporter
|
|
0 commit comments