From d8554861a0c389b1aee9347a34a135288bece87b Mon Sep 17 00:00:00 2001 From: Mario Minardi Date: Thu, 12 Sep 2024 16:00:01 -0600 Subject: [PATCH 1/2] [tailscale] .github: update actions/checkout to 4.x Update actions/checkout to 4.x as the version of node used in 3.x is deprecated for GitHub actions. Updates #cleanup Signed-off-by: Mario Minardi --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ee56e2c27554b..4972a145ee388b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: ref: ${{ inputs.ref || github.ref }} - name: test @@ -38,7 +38,7 @@ jobs: if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: ref: ${{ inputs.ref || github.ref }} - name: build @@ -118,7 +118,7 @@ jobs: needs: [upload_release] steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: ref: ${{ inputs.ref || github.ref }} - name: Delete older builds From 657a039760a68772e91d68f3b00f759d0b0dccc7 Mon Sep 17 00:00:00 2001 From: Mario Minardi Date: Thu, 12 Sep 2024 16:11:36 -0600 Subject: [PATCH 2/2] [tailscale] .github: stop using upload-release-asset action Change to use `action-gh-release` instead of `upload-release-asset` as the repo for `upload-release-asset` is in public archive and recommends swapping over to `action-gh-release`. Updates TODO Signed-off-by: Mario Minardi --- .github/workflows/build.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4972a145ee388b..faf1e3d95f4ab9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,14 +101,10 @@ jobs: with: name: ${{ matrix.GOOS }}-${{ matrix.GOARCH }} - name: upload artifact - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8 with: - upload_url: ${{ needs.create_release.outputs.url }} - asset_path: ${{ matrix.GOOS }}-${{ matrix.GOARCH }}.tar.gz - asset_name: ${{ matrix.GOOS }}-${{ matrix.GOARCH }}.tar.gz - asset_content_type: application/gzip + files: ${{ matrix.GOOS }}-${{ matrix.GOARCH }}.tar.gz + token: ${{ secrets.GITHUB_TOKEN }} clean_old: runs-on: ubuntu-20.04