diff options
author | Bram <perl-rt@wizbit.be> | 2022-09-11 22:18:42 +0200 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-09-13 18:52:00 -0600 |
commit | cd4fa92e6898ccfdbd64a469dafa11822205922f (patch) | |
tree | 993187f545bb307f4e5d7682ccd250c6ba2e77c5 | |
parent | dee6987387b7ea27c65bb8d9097b92be9a13722b (diff) | |
download | perl-cd4fa92e6898ccfdbd64a469dafa11822205922f.tar.gz |
CI/linux-i386: Remove fetching of tags
For linux-i386 `checkout@v1` is used which automatically fetches all tags.
It uses the command (slightly altered for readability):
git -c http.extraheader="AUTHORIZATION: basic ***" fetch \
--tags \
--prune \
--progress \
--no-recurse-submodules \
origin +refs/heads/*:refs/remotes/origin/*
So fetching the tags again is not needed.
Note: this also makes it possible to get rid of the `git remote set-url`
command. (This was added to add 'Authorization' header which is
needed when using a private repo when using `git fetch`. Since the
`git fetch` is gone the changing of the remote is no longer needed)
-rw-r--r-- | .github/workflows/testsuite.yml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 101715eb40..a2ad444c86 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -223,14 +223,10 @@ jobs: # - https://github.com/actions/checkout/issues/334#issuecomment-1241306390 # - https://github.com/actions/runner/issues/2115 - uses: actions/checkout@v1 - - name: fix git remote credential + - name: git cfg run: | git config --global --add safe.directory /__w/perl5/perl5 - git remote set-url origin "https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" - - name: git cfg + fetch tags - run: | git config diff.renameLimit 999999 - git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Configure run: | ./Configure -des -Dusedevel ${{ matrix.CONFIGURE_ARGS }} -Dprefix="$HOME/perl-blead" |