public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon Turney <jturney@sourceware.org>
To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: CI: Upgrade checkout actions to avoid deprecation warning
Date: Sat, 22 Jul 2023 16:18:08 +0000 (GMT)	[thread overview]
Message-ID: <20230722161808.B13B6385841B@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=25d65d6ec0532742d2d4121e4ddfda6295a4da78

commit 25d65d6ec0532742d2d4121e4ddfda6295a4da78
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Sat Jul 22 13:23:15 2023 +0100

    Cygwin: CI: Upgrade checkout actions to avoid deprecation warning
    
    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)
    
    Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>

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 }}
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
 
     # 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 in the
     # repo)
     - run: git config --global core.autocrlf input
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v3
 
     # 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'

                 reply	other threads:[~2023-07-22 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230722161808.B13B6385841B@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).