🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
chore(ci): update GitHub Actions to latest major versions (#5462)
Deluan Quintãoa34a4abbc1a7
diff --git a/.github/actions/prepare-docker/action.yml b/.github/actions/prepare-docker/action.ymlindex 760a0528b..7fe0b9148 100644--- a/.github/actions/prepare-docker/action.yml+++ b/.github/actions/prepare-docker/action.yml@@ -53,13 +53,13 @@ runs:- name: Login to Docker Hubif: inputs.hub_username != '' && inputs.hub_password != ''- uses: docker/login-action@v3+ uses: docker/login-action@v4with:username: ${{ inputs.hub_username }}password: ${{ inputs.hub_password }}- name: Login to GitHub Container Registry- uses: docker/login-action@v3+ uses: docker/login-action@v4with:registry: ghcr.iousername: ${{ github.actor }}@@ -67,12 +67,13 @@ runs:- name: Set up Docker Buildxid: buildx- uses: docker/setup-buildx-action@v3+ uses: docker/setup-buildx-action@v4- name: Extract metadata for Docker imageid: meta- uses: docker/metadata-action@v5+ uses: docker/metadata-action@v6with:+ token: ${{ inputs.github_token }}labels: |images: |diff --git a/.github/workflows/download-link-on-pr.yml b/.github/workflows/download-link-on-pr.ymlindex 38b7b8a86..076f963d4 100644--- a/.github/workflows/download-link-on-pr.yml+++ b/.github/workflows/download-link-on-pr.yml@@ -8,7 +8,7 @@ jobs:if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'runs-on: ubuntu-lateststeps:- - uses: actions/github-script@v3+ - uses: actions/github-script@v7with:# This snippet is public-domain, taken from# https://github.com/oprypin/nightly.link/blob/master/.github/workflows/pr-comment.yml@@ -19,8 +19,7 @@ jobs:const pull_user_id = ${{github.event.sender.id}};const issue_number = await (async () => {- const pulls = await github.pulls.list({owner, repo});- for await (const {data} of github.paginate.iterator(pulls)) {+ for await (const {data} of github.paginate.iterator(github.rest.pulls.list, {owner, repo})) {for (const pull of data) {if (pull.head.sha === pull_head_sha && pull.user.id === pull_user_id) {return pull.number;@@ -34,7 +33,7 @@ jobs:return core.error(`No matching pull request found`);}- const {data: {artifacts}} = await github.actions.listWorkflowRunArtifacts({owner, repo, run_id});+ const {data: {artifacts}} = await github.rest.actions.listWorkflowRunArtifacts({owner, repo, run_id});if (!artifacts.length) {return core.error(`No artifacts found`);}@@ -43,12 +42,12 @@ jobs:body += `\n* [${art.name}.zip](https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip)`;}- const {data: comments} = await github.issues.listComments({repo, owner, issue_number});+ const {data: comments} = await github.rest.issues.listComments({repo, owner, issue_number});const existing_comment = comments.find((c) => c.user.login === 'github-actions[bot]');if (existing_comment) {core.info(`Updating comment ${existing_comment.id}`);- await github.issues.updateComment({repo, owner, comment_id: existing_comment.id, body});+ await github.rest.issues.updateComment({repo, owner, comment_id: existing_comment.id, body});} else {core.info(`Creating a comment`);- await github.issues.createComment({repo, owner, issue_number, body});+ await github.rest.issues.createComment({repo, owner, issue_number, body});}diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex 09fca2572..6f858a5a7 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -145,7 +145,7 @@ jobs:- name: Cache ffmpegid: ffmpeg-cache- uses: actions/cache@v4+ uses: actions/cache@v5with:path: C:\ffmpegkey: ffmpeg-${{ env.FFMPEG_VERSION }}-win64diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.ymlindex 69e6ac99e..33c8fadbd 100644--- a/.github/workflows/stale.yml+++ b/.github/workflows/stale.yml@@ -28,7 +28,7 @@ jobs:This pull request has been automatically locked since therehas not been any recent activity after it was closed.Please open a new issue for related bugs.- - uses: actions/stale@v9+ - uses: actions/stale@v10with:operations-per-run: 999days-before-issue-stale: 180