فهرست منبع

ci: fix winget & stale workflows [skip ci]

Baptiste Augrain 2 سال پیش
والد
کامیت
ce4af41a4a
4فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 0 1
      .github/workflows/stable-linux.yml
  2. 1 1
      .github/workflows/stable-windows.yml
  3. 1 0
      .github/workflows/stale.yml
  4. 1 1
      stores/winget/check_version.sh

+ 0 - 1
.github/workflows/stable-linux.yml

@@ -128,7 +128,6 @@ jobs:
           aur_private_key: ${{ secrets.AUR_PRIVATE_KEY }}
           aur_username: ${{ secrets.AUR_USERNAME }}
           aur_email: ${{ secrets.AUR_EMAIL }}
-        if: ${{ false }}
 
       - name: Publish vscodium-git
         uses: zokugun/github-actions-aur-releaser@v1

+ 1 - 1
.github/workflows/stable-windows.yml

@@ -132,7 +132,7 @@ jobs:
           RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }}
 
       - name: Release to WinGet
-        uses: daiyam/winget-releaser@insider
+        uses: vedantmgoyal2009/winget-releaser@latest
         with:
           identifier: ${{ env.APP_IDENTIFIER }}
           version: ${{ env.RELEASE_VERSION }}

+ 1 - 0
.github/workflows/stale.yml

@@ -16,6 +16,7 @@ jobs:
           days-before-stale: 180
           days-before-close: 30
           stale-issue-label: stale
+          operations-per-run: 1024
           stale-issue-message: >
             This issue has been automatically marked as stale. **If this issue is still affecting you, please leave any comment**, and we'll keep it open. If you have any new additional information, please include it with your comment!
           close-issue-message: >

+ 1 - 1
stores/winget/check_version.sh

@@ -8,7 +8,7 @@ if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
   RELEASE_VERSION="${RELEASE_VERSION/\-insider/}"
 fi
 
-WINGET_VERSION=$( echo "${VERSIONS}" | jq -r 'map(.name) | last' )
+WINGET_VERSION=$( echo "${VERSIONS}" | jq -r 'map(select(.name | startswith("1."))) | map(.name) | last' )
 
 echo "RELEASE_VERSION=\"${RELEASE_VERSION}\""
 echo "WINGET_VERSION=\"${WINGET_VERSION}\""