From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id B13B6385841B; Sat, 22 Jul 2023 16:18:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B13B6385841B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690042688; bh=3b/OuLvGhLS3OwpyA4ASHvnz7u6Pv1v1m5GaJbgkJks=; h=From:To:Subject:Date:From; b=B1h9f4kwiPKC8CFpig3GtSRdczAdfoI0EtDieQFqYVS3cT1iNOpyeKjc9Yiznbg+p fu5j68GBa7jak3jhLpB5a+N+6CzHAB3R/2wEIW6nYhT7OfCysMm1D4QudumEKGM+Es 7sDRf2Id02lq65vVfaG6cqDpG9vhdxa4qU9r+7m0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon Turney To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: CI: Upgrade checkout actions to avoid deprecation warning X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 2133d91175543b778999e953cd1a158003855f07 X-Git-Newrev: 25d65d6ec0532742d2d4121e4ddfda6295a4da78 Message-Id: <20230722161808.B13B6385841B@sourceware.org> Date: Sat, 22 Jul 2023 16:18:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D25d65d6ec05= 32742d2d4121e4ddfda6295a4da78 commit 25d65d6ec0532742d2d4121e4ddfda6295a4da78 Author: Jon Turney Date: Sat Jul 22 13:23:15 2023 +0100 Cygwin: CI: Upgrade checkout actions to avoid deprecation warning =20 Also: workaround a problem with actions/checkout's post-run step using Cygwin git but being incompatible with it. (This would be better solved by cygwin-install-action having a post-run step to unwind it's PATH changes, but that's not currently possible) =20 Signed-off-by: Jon Turney Diff: --- .github/workflows/cygwin.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index 145b59eba..1034495e6 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -15,7 +15,7 @@ jobs: name: Fedora cross ${{ matrix.target }} =20 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 =20 # install build tools - run: dnf install -y autoconf automake make patch perl @@ -61,7 +61,7 @@ jobs: # endings, but this could still be dangerous e.g if we need symlinks i= n the # repo) - run: git config --global core.autocrlf input - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 =20 # install cygwin and build tools - name: Install Cygwin @@ -131,3 +131,7 @@ jobs: build/${{ matrix.target }}/winsup/testsuite/**/*.log build/${{ matrix.target }}/winsup/testsuite/**/*.trs if: ${{ !cancelled() }} + + # workaround problems with actions/checkout post-run step using cygwin= git + - name: Avoid actions/checkout post-run step using Cygwin git + run: bash -c 'rm /usr/bin/git.exe'