فهرست منبع

chore(cli): update plugin template tauri-apps/create-pull-request

Lucas Nogueira 3 سال پیش
والد
کامیت
07f9079532

+ 6 - 0
.changes/fix-cli-plugin-template.md

@@ -0,0 +1,6 @@
+---
+"cli.rs": patch
+"cli.js": patch
+---
+
+Update plugin templates to use newer `tauri-apps/create-pull-request` GitHub action.

+ 8 - 5
tooling/cli/templates/plugin/backend/.github/workflows/covector-version-or-publish.yml

@@ -28,12 +28,15 @@ jobs:
           token: ${{ secrets.GITHUB_TOKEN }}
           command: 'version-or-publish'
           createRelease: true
-      - name: create pull request
-        id: cpr
-        uses: tauri-apps/create-pull-request@v2.8.0
+      - name: Create Pull Request With Versions Bumped
+        if: steps.covector.outputs.commandRan == 'version'
+        uses: tauri-apps/create-pull-request@v3.4.1
         with:
-          title: "Publish New Versions"
+          token: ${{ secrets.GITHUB_TOKEN }}
+          branch: release/version-updates
+          title: Apply Version Updates From Current Changes
+          commit-message: "apply version updates"
           labels: "version updates"
-          branch: "release"
           body: ${{ steps.covector.outputs.change }}
+
 {{{{/raw}}}}

+ 8 - 5
tooling/cli/templates/plugin/with-api/.github/workflows/covector-version-or-publish.yml

@@ -28,12 +28,15 @@ jobs:
           token: ${{ secrets.GITHUB_TOKEN }}
           command: 'version-or-publish'
           createRelease: true
-      - name: create pull request
-        id: cpr
-        uses: tauri-apps/create-pull-request@v2.8.0
+      - name: Create Pull Request With Versions Bumped
+        if: steps.covector.outputs.commandRan == 'version'
+        uses: tauri-apps/create-pull-request@v3.4.1
         with:
-          title: "Publish New Versions"
+          token: ${{ secrets.GITHUB_TOKEN }}
+          branch: release/version-updates
+          title: Apply Version Updates From Current Changes
+          commit-message: "apply version updates"
           labels: "version updates"
-          branch: "release"
           body: ${{ steps.covector.outputs.change }}
+
 {{{{/raw}}}}