Просмотр исходного кода

Merge magspoof from https://github.com/zacharyweiss/magspoof_flipper

Willy-JL 1 год назад
Родитель
Сommit
e1e3243914
2 измененных файлов с 61 добавлено и 1 удалено
  1. 60 0
      magspoof/.github/workflows/app_catalog_upd.yml
  2. 1 1
      magspoof/application.fam

+ 60 - 0
magspoof/.github/workflows/app_catalog_upd.yml

@@ -0,0 +1,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/flipper-app-catalog-action@v1.1
+        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 }}

+ 1 - 1
magspoof/application.fam

@@ -17,7 +17,7 @@ App(
     fap_category="GPIO",
     fap_icon_assets="icons",
     fap_icon_assets_symbol="mag",
-    fap_version=(0, 10),  # major, minor
+    fap_version=(0, 10),
     fap_description="Enables wireless transmission of magstripe data",
     fap_author="Zachary Weiss",
     fap_weburl="https://github.com/zacharyweiss/magspoof_flipper",