Skip to content

Commit 9d73725

Browse files
authored
Merge branch 'Acode-Foundation:main' into lsp-codemirror
2 parents 6a70dd0 + c0f2971 commit 9d73725

39 files changed

+718
-170
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sh text eol=lf

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.github/CODEOWNERS @Acode-Foundation
2+
3+
# workflows
4+
.github/workflows/nightly-build.yml @unschooledgamer
5+
.github/workflows/on-demand-preview-releases-PR.yml @unschooledgamer
6+
.github/workflows/community-release-notifier.yml @unschooledgamer

.github/workflows/nightly-build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Implement to use environment secrets someday, At the moment GH Actions doesn't support those in reusable workflows (ref: https://github.com/actions/runner/issues/1490)
2+
# at least that's what I found.
13
name: Nightly Build
24

35
on:
@@ -28,6 +30,12 @@
2830
value: ${{ jobs.build.result }}
2931

3032
workflow_dispatch:
33+
inputs:
34+
skip_tagging_and_releases:
35+
required: false
36+
default: true
37+
type: boolean
38+
description: Skips Tagging & releases, since workflow_call isn't available for github.event_name, default is true
3139

3240
concurrency:
3341
# Allow only one workflow per any non-`main` branch.
@@ -51,7 +59,7 @@
5159
permissions:
5260
# contents write is needed to create Nightly Releases.
5361
contents: write
54-
issues: write
62+
# issues: write
5563
pull-requests: write
5664

5765
outputs:
@@ -89,13 +97,16 @@
8997
uses: actions/checkout@v4
9098
with:
9199
fetch-depth: 0 # Required for tags
100+
# persists credentials locally if tagging and releases are not skipped.
101+
persist-credentials: ${{ ! inputs.skip_tagging_and_releases }}
102+
ref: ${{ (inputs.is_PR && inputs.PR_NUMBER) && github.event.pull_request.head.sha || '' }}
92103

93104
- name: Set up Java 21
94105
uses: actions/setup-java@v4
95106
with:
96107
distribution: 'temurin'
97108
java-version: '21'
98-
cache: ${{ (github.ref == 'refs/heads/main' && 'gradle') || '' }}
109+
cache: ${{ (!(inputs.is_PR && inputs.PR_NUMBER) && github.ref == 'refs/heads/main' && 'gradle') || '' }}
99110

100111
- name: Set up Node.js
101112
uses: actions/setup-node@v4
@@ -210,7 +221,8 @@
210221
platforms/android/app/build/outputs/apk/debug/app-debug.apk
211222
body: |
212223
Automated Nightly (pre-release) Releases for Today
213-
\n\n[Compare Changes](https://github.com/${{ github.repository }}/compare/${{ env.TAG_COMMIT }}...${{ github.sha }})
224+
225+
[Compare Changes](https://github.com/${{ github.repository }}/compare/${{ env.TAG_COMMIT }}...${{ github.sha }})
214226
215227
- name: Update Last Comment by bot (If ran in PR)
216228
if: inputs.is_PR

.github/workflows/on-demand-preview-releases-PR.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: On Demand Preview Releases for PR
22
# avoids paths like .md, and anything in .github folder
33
on:
4-
pull_request:
4+
pull_request_target:
55
paths-ignore:
66
- '!*.md'
77
# - '.github/**'
@@ -38,6 +38,9 @@ jobs:
3838
with:
3939
clean: false
4040
fetch-depth: 0
41+
persist-credentials: false
42+
# Checkout pull request HEAD commit instead of merge commit
43+
ref: ${{ github.event.pull_request.head.sha }}
4144

4245
- name: Remove Manually added PR Label
4346
if: |

src/lang/ar-ye.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,5 +428,8 @@
428428
"contributors": "المساهمون",
429429
"quicktools:hyphen": "إدراج شرطة",
430430
"check for app updates": "Check for app updates",
431-
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?",
432+
"keywords": "Keywords",
433+
"author": "Author",
434+
"filtered by": "Filtered by"
432435
}

src/lang/be-by.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,5 +429,8 @@
429429
"contributors": "Contributors",
430430
"quicktools:hyphen": "Insert hyphen symbol",
431431
"check for app updates": "Check for app updates",
432-
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
432+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?",
433+
"keywords": "Keywords",
434+
"author": "Author",
435+
"filtered by": "Filtered by"
433436
}

src/lang/bn-bd.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,5 +428,8 @@
428428
"contributors": "অবদানকারী",
429429
"quicktools:hyphen": "হাইফেন যুক্ত করুন",
430430
"check for app updates": "Check for app updates",
431-
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?",
432+
"keywords": "Keywords",
433+
"author": "Author",
434+
"filtered by": "Filtered by"
432435
}

src/lang/cs-cz.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,5 +428,8 @@
428428
"contributors": "Contributors",
429429
"quicktools:hyphen": "Insert hyphen symbol",
430430
"check for app updates": "Check for app updates",
431-
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?",
432+
"keywords": "Keywords",
433+
"author": "Author",
434+
"filtered by": "Filtered by"
432435
}

src/lang/de-de.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,5 +428,8 @@
428428
"contributors": "Mitwirkende",
429429
"quicktools:hyphen": "Bindestrich-Symbol einfügen",
430430
"check for app updates": "Check for app updates",
431-
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?",
432+
"keywords": "Keywords",
433+
"author": "Author",
434+
"filtered by": "Filtered by"
432435
}

src/lang/en-us.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,5 +428,8 @@
428428
"contributors": "Contributors",
429429
"quicktools:hyphen": "Insert hyphen symbol",
430430
"check for app updates": "Check for app updates",
431-
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?",
432+
"keywords": "Keywords",
433+
"author": "Author",
434+
"filtered by": "Filtered by"
432435
}

0 commit comments

Comments
 (0)