From 58deb390296117fa91db17b225cda1e7923d1402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 15 Mar 2022 10:22:01 +0100 Subject: [PATCH] Enhancement: Update actions/github-script (#10612) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4af09c10..e3d872d60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,14 +81,14 @@ jobs: # This step requires a secret token with `pull` access to composer/docker. The default # secrets.GITHUB_TOKEN is scoped to this repository only which is not sufficient. - name: "Open issue @ Docker repository" - uses: actions/github-script@v2 + uses: actions/github-script@v6 with: github-token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} script: | // github.ref value looks like 'refs/tags/TAG', cleanup const tag = "${{ github.ref }}".replace(/refs\/tags\//, ''); // create new issue on Docker repository - github.issues.create({ + github.rest.issues.create({ owner: "${{ github.repository_owner }}", repo: "docker", title: `New Composer tag: ${ tag }`,