diff --git a/.github/workflows/backend_deploy.yaml b/.github/workflows/backend_deploy.yaml index c80ac53c..808912af 100644 --- a/.github/workflows/backend_deploy.yaml +++ b/.github/workflows/backend_deploy.yaml @@ -23,7 +23,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm id: pnpm-install with: diff --git a/.github/workflows/docs_deploy.yml b/.github/workflows/docs_deploy.yml index 358ffa23..6f437614 100644 --- a/.github/workflows/docs_deploy.yml +++ b/.github/workflows/docs_deploy.yml @@ -24,7 +24,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm id: pnpm-install with: diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c745e6dd..90c7b8ff 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -19,7 +19,7 @@ jobs: - name: Upload test results if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: playwright-report path: | diff --git a/.github/workflows/frontend_deploy.yaml b/.github/workflows/frontend_deploy.yaml index 53ef0865..0b60f15b 100644 --- a/.github/workflows/frontend_deploy.yaml +++ b/.github/workflows/frontend_deploy.yaml @@ -21,7 +21,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm with: version: 10 @@ -58,7 +58,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm with: version: 10 diff --git a/.github/workflows/frontend_pagefunction_deploy.yaml b/.github/workflows/frontend_pagefunction_deploy.yaml index 1b8292eb..e36949e2 100644 --- a/.github/workflows/frontend_pagefunction_deploy.yaml +++ b/.github/workflows/frontend_pagefunction_deploy.yaml @@ -39,7 +39,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm with: version: 10 diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index ea7c6d21..c0382331 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -12,14 +12,7 @@ jobs: if: ${{ github.event.repository.fork }} steps: - - uses: actions/checkout@v6 - - name: Sync upstream changes - id: sync - uses: aormsby/Fork-Sync-With-Upstream-action@v3.4 - with: - upstream_sync_repo: dreamhunter2333/cloudflare_temp_email - upstream_sync_branch: main - target_sync_branch: main - target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set - test_mode: false + run: gh repo sync ${{ github.repository }} --source dreamhunter2333/cloudflare_temp_email --branch main + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tag_build.yml b/.github/workflows/tag_build.yml index defd1f1e..9a5ab785 100644 --- a/.github/workflows/tag_build.yml +++ b/.github/workflows/tag_build.yml @@ -17,7 +17,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm with: version: 10 @@ -30,7 +30,7 @@ jobs: run: cd frontend/dist/ && zip -r frontend.zip * && mv frontend.zip ../ - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: frontend path: frontend/frontend.zip @@ -46,7 +46,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm with: version: 10 @@ -59,7 +59,7 @@ jobs: run: cd frontend/dist/ && zip -r telegram-frontend.zip * && mv telegram-frontend.zip ../ - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: telegram-frontend path: frontend/telegram-frontend.zip @@ -75,7 +75,7 @@ jobs: with: node-version: 22 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@v5 name: Install pnpm with: version: 10 @@ -101,13 +101,13 @@ jobs: zip -r worker-with-wasm-mail-parser.zip dist/worker.js dist/*.wasm - name: Upload worker.js - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: worker-js path: worker/worker.js - name: Upload wasm worker - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: worker-wasm path: worker/worker-with-wasm-mail-parser.zip @@ -119,15 +119,17 @@ jobs: contents: write steps: - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v6 with: path: artifacts - - name: Upload to Release - uses: softprops/action-gh-release@v2 - with: - files: | - artifacts/frontend/frontend.zip - artifacts/telegram-frontend/telegram-frontend.zip - artifacts/worker-js/worker.js - artifacts/worker-wasm/worker-with-wasm-mail-parser.zip + - name: Upload Assets to Release + run: | + gh release upload "${{ github.ref_name }}" \ + artifacts/frontend/frontend.zip \ + artifacts/telegram-frontend/telegram-frontend.zip \ + artifacts/worker-js/worker.js \ + artifacts/worker-wasm/worker-with-wasm-mail-parser.zip \ + --clobber + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}