-
-
Notifications
You must be signed in to change notification settings - Fork 35
60 lines (45 loc) · 2.28 KB
/
app_catalog_upd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Update Flipper Application Catalog
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'application.fam'
jobs:
update-catalog:
runs-on: ubuntu-latest
steps:
- uses: zacharyweiss/[email protected]
id: update_manifest
with:
CATALOG_UPDATE_TOKEN: ${{ secrets.CATALOG_UPDATE_TOKEN }}
- name: Auto-PR
run: |
cd flipper-application-catalog
SHORT_SHA_OLD=$(echo ${{ steps.update_manifest.outputs.OLD_SHA }} | cut -c1-8)
SHORT_SHA_NEW=$(echo ${{ github.sha }} | cut -c1-8)
echo "# Application Submission
- Bumps ${{ steps.update_manifest.outputs.NAME }} to v${{ steps.update_manifest.outputs.V_MAJOR }}.${{ steps.update_manifest.outputs.V_MINOR }} (${SHORT_SHA_OLD} > ${SHORT_SHA_NEW})
- Commits since last release:
\`\`\`
${{ steps.update_manifest.outputs.CHANGES }}
\`\`\`
# Extra Requirements
Cf. original PR adding the app: #375
# Author Checklist (Fill this out)
- [X] I've read the [contribution guidelines](../blob/HEAD/documentation/Contributing.md) and my PR follows them
- [X] I own the code I'm submitting or have code owner's permission to submit it
- [X] I [have validated](../blob/HEAD/documentation/Contributing.md#validating-manifest) the manifest file(s) with \`python3 tools/bundle.py --nolint ${{ steps.update_manifest.outputs.MANIFEST_PATH }} bundle.zip\`
# Reviewer Checklist (Don't fill this out)
- [ ] Bundle is valid
- [ ] There are no obvious issues with the source code
- [ ] I've ran this application and verified its functionality
" | gh pr create \
--title "Update ${{ steps.update_manifest.outputs.NAME }} to v${{ steps.update_manifest.outputs.V_MAJOR }}.${{ steps.update_manifest.outputs.V_MINOR }}" \
--body-file - \
--base main \
--head ${{ github.repository_owner }}:${{ steps.update_manifest.outputs.BRANCH_NAME }} \
--repo flipperdevices/flipper-application-catalog
env:
GH_TOKEN: ${{ secrets.CATALOG_UPDATE_TOKEN }}