app_catalog_upd.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: Update Flipper Application Catalog
  2. on:
  3. workflow_dispatch:
  4. push:
  5. branches:
  6. - main
  7. paths:
  8. - 'application.fam'
  9. jobs:
  10. update-catalog:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: zacharyweiss/flipper-app-catalog-action@v1.2
  14. id: update_manifest
  15. with:
  16. CATALOG_UPDATE_TOKEN: ${{ secrets.CATALOG_UPDATE_TOKEN }}
  17. - name: Auto-PR
  18. run: |
  19. cd flipper-application-catalog
  20. SHORT_SHA_OLD=$(echo ${{ steps.update_manifest.outputs.OLD_SHA }} | cut -c1-8)
  21. SHORT_SHA_NEW=$(echo ${{ github.sha }} | cut -c1-8)
  22. echo "# Application Submission
  23. - 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})
  24. - Commits since last release:
  25. \`\`\`
  26. ${{ steps.update_manifest.outputs.CHANGES }}
  27. \`\`\`
  28. # Extra Requirements
  29. Cf. original PR adding the app: #375
  30. # Author Checklist (Fill this out)
  31. - [X] I've read the [contribution guidelines](../blob/HEAD/documentation/Contributing.md) and my PR follows them
  32. - [X] I own the code I'm submitting or have code owner's permission to submit it
  33. - [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\`
  34. # Reviewer Checklist (Don't fill this out)
  35. - [ ] Bundle is valid
  36. - [ ] There are no obvious issues with the source code
  37. - [ ] I've ran this application and verified its functionality
  38. " | gh pr create \
  39. --title "Update ${{ steps.update_manifest.outputs.NAME }} to v${{ steps.update_manifest.outputs.V_MAJOR }}.${{ steps.update_manifest.outputs.V_MINOR }}" \
  40. --body-file - \
  41. --base main \
  42. --head ${{ github.repository_owner }}:${{ steps.update_manifest.outputs.BRANCH_NAME }} \
  43. --repo flipperdevices/flipper-application-catalog
  44. env:
  45. GH_TOKEN: ${{ secrets.CATALOG_UPDATE_TOKEN }}