Skip to content

Commit 25cf0db

Browse files
committed
Further Align Various
1 parent 973479b commit 25cf0db

18 files changed

Lines changed: 638 additions & 407 deletions

.github/workflows/build_artefacts.yml

Lines changed: 150 additions & 33 deletions
Large diffs are not rendered by default.

.github/workflows/issue_helper_change_title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
shell: bash
146146
run: |
147147
# Set Title
148-
if [ "${ENV_PROVENANCE_KNOWN}" == 'NO' ]; then
148+
if [ "${ENV_PROVENANCE_KNOWN}" == 'YES' ]; then
149149
NewTitle="${ENV_OUR_TITLE}"
150150
else
151151
# Use default if ENV_PROVENANCE_TAG is blank
Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
name: 'Issue Helper Disavowed Build'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
operation:
7+
description: 'Issue Action'
8+
type: choice
9+
options:
10+
- 'Drop - Upstream - File'
11+
- 'Drop - Custom - Build'
12+
default: 'Drop - Custom - Build'
13+
item_id:
14+
description: 'Item ID'
15+
type: string
16+
required: true
17+
18+
permissions:
19+
issues: write
20+
21+
concurrency:
22+
group: lock
23+
24+
jobs:
25+
drop_upstream_file:
26+
name: Drop - Upstream - File
27+
runs-on: ubuntu-latest
28+
29+
if: github.event.inputs.operation == 'Drop - Upstream - File'
30+
steps:
31+
# Generate App Token - https://github.com/actions/create-github-app-token
32+
- id: app-token
33+
uses: actions/create-github-app-token@v3
34+
with:
35+
app-id: ${{ vars.APP_ID }}
36+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
37+
38+
- id: part_02
39+
uses: actions-cool/issues-helper@v3
40+
with:
41+
actions: 'create-comment'
42+
token: ${{ steps.app-token.outputs.token }}
43+
issue-number: ${{ github.event.inputs.item_id }}
44+
body: |
45+
You appear to be running an upstream based instance.
46+
`RefindPlus` was forked from upstream but is not `rEFind`.
47+
48+
> [!IMPORTANT]
49+
> Only items related to RefindPlus can be considered here.
50+
51+
Thank you.
52+
53+
- id: part_03
54+
uses: actions-cool/issues-helper@v3
55+
with:
56+
actions: 'add-labels'
57+
token: ${{ steps.app-token.outputs.token }}
58+
issue-number: ${{ github.event.inputs.item_id }}
59+
labels: 'Dropped'
60+
61+
- id: part_04
62+
uses: actions-cool/issues-helper@v3
63+
with:
64+
actions: 'remove-labels'
65+
token: ${{ steps.app-token.outputs.token }}
66+
issue-number: ${{ github.event.inputs.item_id }}
67+
labels: 'Triage,No-Log,Incomplete,Tagged,Stale,Queries'
68+
69+
- id: part_05
70+
uses: actions-cool/issues-helper@v3
71+
with:
72+
actions: 'close-issue'
73+
close-reason: 'completed'
74+
token: ${{ steps.app-token.outputs.token }}
75+
issue-number: ${{ github.event.inputs.item_id }}
76+
77+
- id: part_06
78+
uses: actions-cool/issues-helper@v3
79+
with:
80+
actions: 'lock-issue'
81+
token: ${{ steps.app-token.outputs.token }}
82+
issue-number: ${{ github.event.inputs.item_id }}
83+
84+
- id: part_07
85+
uses: actions/github-script@v8
86+
with:
87+
github-token: ${{ steps.app-token.outputs.token }}
88+
script: |
89+
const issueNumber = context.payload.inputs.item_id;
90+
const { data } = await github.rest.issues.get({
91+
owner: context.repo.owner,
92+
repo: context.repo.repo,
93+
issue_number: issueNumber
94+
});
95+
96+
# Set NodeJS Up - https://github.com/actions/setup-node
97+
- id: part_08
98+
uses: actions/setup-node@v6
99+
with:
100+
node-version: '>=24 <=28'
101+
102+
- id: part_09
103+
env:
104+
ENV_TOKEN: ${{ steps.app-token.outputs.token }}
105+
ENV_REPO: ${{ github.repository }}
106+
ENV_ISSUE_ID: ${{ github.event.inputs.item_id }}
107+
shell: bash
108+
run: |
109+
# Set Title
110+
NewTitle="Upstream rEFInd Instance: Has Issues"
111+
echo "Updating issue #${ENV_ISSUE_ID} with title: ${NewTitle}"
112+
curl -f -X PATCH \
113+
-H "Authorization: token ${ENV_TOKEN}" \
114+
-H "Accept: application/vnd.github.v3+json" \
115+
https://api.github.com/repos/${ENV_REPO}/issues/${ENV_ISSUE_ID} \
116+
-d "{\"title\": \"${NewTitle}\"}" || { echo "Title Update Failed"; exit 1; }
117+
118+
119+
120+
drop_custom_build:
121+
name: Drop - Custom - Build
122+
runs-on: ubuntu-latest
123+
124+
if: github.event.inputs.operation == 'Drop - Custom - Build'
125+
steps:
126+
# Generate App Token - https://github.com/actions/create-github-app-token
127+
- id: app-token
128+
uses: actions/create-github-app-token@v3
129+
with:
130+
app-id: ${{ vars.APP_ID }}
131+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
132+
133+
- id: part_02
134+
uses: actions-cool/issues-helper@v3
135+
with:
136+
actions: 'create-comment'
137+
token: ${{ steps.app-token.outputs.token }}
138+
issue-number: ${{ github.event.inputs.item_id }}
139+
body: |
140+
You appear to be running a custom build.
141+
This cannot be considered at this time.
142+
143+
> [!IMPORTANT]
144+
> Issues found on modified/customised builds must be tested on official files/code.
145+
> Should they also appear on these sources, raise issues based on offical files/code.
146+
> Additionally, debug logs and other similar outputs should be from offical files/code.
147+
148+
Thank you.
149+
150+
- id: part_03
151+
uses: actions-cool/issues-helper@v3
152+
with:
153+
actions: 'add-labels'
154+
token: ${{ steps.app-token.outputs.token }}
155+
issue-number: ${{ github.event.inputs.item_id }}
156+
labels: 'Dropped'
157+
158+
- id: part_04
159+
uses: actions-cool/issues-helper@v3
160+
with:
161+
actions: 'remove-labels'
162+
token: ${{ steps.app-token.outputs.token }}
163+
issue-number: ${{ github.event.inputs.item_id }}
164+
labels: 'Triage,No-Log,Incomplete,Tagged,Stale,Queries'
165+
166+
- id: part_05
167+
uses: actions-cool/issues-helper@v3
168+
with:
169+
actions: 'close-issue'
170+
close-reason: 'completed'
171+
token: ${{ steps.app-token.outputs.token }}
172+
issue-number: ${{ github.event.inputs.item_id }}
173+
174+
- id: part_06
175+
uses: actions-cool/issues-helper@v3
176+
with:
177+
actions: 'lock-issue'
178+
token: ${{ steps.app-token.outputs.token }}
179+
issue-number: ${{ github.event.inputs.item_id }}
180+
181+
- id: part_07
182+
uses: actions/github-script@v8
183+
with:
184+
github-token: ${{ steps.app-token.outputs.token }}
185+
script: |
186+
const issueNumber = context.payload.inputs.item_id;
187+
const { data } = await github.rest.issues.get({
188+
owner: context.repo.owner,
189+
repo: context.repo.repo,
190+
issue_number: issueNumber
191+
});
192+
193+
# Set NodeJS Up - https://github.com/actions/setup-node
194+
- id: part_08
195+
uses: actions/setup-node@v6
196+
with:
197+
node-version: '>=24 <=28'
198+
199+
- id: part_09
200+
env:
201+
ENV_TOKEN: ${{ steps.app-token.outputs.token }}
202+
ENV_REPO: ${{ github.repository }}
203+
ENV_ISSUE_ID: ${{ github.event.inputs.item_id }}
204+
shell: bash
205+
run: |
206+
# Set Title
207+
NewTitle="RefindPlus of Unknown Provenance: Has Issues"
208+
echo "Updating issue #${ENV_ISSUE_ID} with title: ${NewTitle}"
209+
curl -f -X PATCH \
210+
-H "Authorization: token ${ENV_TOKEN}" \
211+
-H "Accept: application/vnd.github.v3+json" \
212+
https://api.github.com/repos/${ENV_REPO}/issues/${ENV_ISSUE_ID} \
213+
-d "{\"title\": \"${NewTitle}\"}" || { echo "Title Update Failed"; exit 1; }

.github/workflows/issue_helper_disavowed_build.yml

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)