From 191a6dac9608851bd16f581c3bbf7930d61b7375 Mon Sep 17 00:00:00 2001 From: kLiHz <66966137+kLiHz@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:28:36 +0800 Subject: [PATCH] Update workflow dependencies --- .github/workflows/release-linux.yml | 6 +++--- .github/workflows/release-windows.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index 94a0898..b7e5ef7 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -10,7 +10,7 @@ jobs: contents: read steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install dependencies run: sudo apt install libssl-dev - name: Build binary @@ -32,13 +32,13 @@ jobs: with: name: git-crypt-artifacts - name: Upload release asset - uses: actions/github-script@v3 + uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require("fs").promises; const { repo: { owner, repo }, sha } = context; - await github.repos.uploadReleaseAsset({ + await github.rest.repos.uploadReleaseAsset({ owner, repo, release_id: ${{ github.event.release.id }}, name: 'git-crypt-${{ github.event.release.name }}-linux-x86_64', diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml index 6794e4a..baf8790 100644 --- a/.github/workflows/release-windows.yml +++ b/.github/workflows/release-windows.yml @@ -10,7 +10,7 @@ jobs: contents: read steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup msys2 uses: msys2/setup-msys2@v2 with: @@ -42,13 +42,13 @@ jobs: with: name: git-crypt-artifacts - name: Upload release asset - uses: actions/github-script@v3 + uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require("fs").promises; const { repo: { owner, repo }, sha } = context; - await github.repos.uploadReleaseAsset({ + await github.rest.repos.uploadReleaseAsset({ owner, repo, release_id: ${{ github.event.release.id }}, name: 'git-crypt-${{ github.event.release.name }}-x86_64.exe',