diff options
| author | crystal <crystal@noreply.codeberg.org> | 2024-05-01 17:58:21 -0600 |
|---|---|---|
| committer | crystal <crystal@noreply.codeberg.org> | 2024-05-01 17:58:21 -0600 |
| commit | f985489b7058cc2d0b57ba861d1b81546f803993 (patch) | |
| tree | fc15e65daf432da6987bd8b0d06836b216f9edf1 | |
| parent | f5324546129fbd98e42ca98811c34cf23bda40d3 (diff) | |
better tag fetching
in addition to using the checkout action for all the fetches, this will
make sure we get a deep clone of the repository that can be used to
resolve tags for pull requests if the submodule is ahead of the latest
tag in the main origin
| -rw-r--r-- | .forgejo/workflows/forgejo-deb.yml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/.forgejo/workflows/forgejo-deb.yml b/.forgejo/workflows/forgejo-deb.yml index 1c66728..7567e04 100644 --- a/.forgejo/workflows/forgejo-deb.yml +++ b/.forgejo/workflows/forgejo-deb.yml @@ -20,6 +20,9 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + fetch-depth: 0 + fetch-tags: true + filter: tree:0 - uses: actions/setup-node@v3 with: @@ -34,12 +37,6 @@ jobs: id: ciprep run: ./.ci-make.sh actions-prep build-forgejo-deb - - name: fetch tags - run: | - git config --add safe.directory '*' - git fetch --tags --force - git submodule foreach 'git fetch --tags --force' - - uses: crystal/install-jq-action@v2.1.0 - run: ./.ci-make.sh ci-verify forgejo |
