diff --git a/.forgejo/workflows/mirror-repository.yml b/.forgejo/workflows/mirror-repository.yml index 11fc813606..94cb31b12b 100644 --- a/.forgejo/workflows/mirror-repository.yml +++ b/.forgejo/workflows/mirror-repository.yml @@ -19,8 +19,8 @@ jobs: steps: - name: Comparing tags of upstream and destination run: | - git ls-remote $upstream "refs/tags/$tags" | grep -v '{' | awk '{print $2}' | sed 's|refs/tags/||' > upstream_tags - git ls-remote $destination "refs/tags/$tags" | grep -v '{' | awk '{print $2}' | sed 's|refs/tags/||' > destination_tags + git ls-remote $upstream "refs/tags/$tags" | grep -v '\\\{' | awk '\\\{print $2\\\}' | sed 's|refs/tags/||' > upstream_tags + git ls-remote $destination "refs/tags/$tags" | grep -v '\\\{' | awk '\\\{print $2\\\}' | sed 's|refs/tags/||' > destination_tags cat upstream_tags destination_tags | tr ' ' '\n' | sort | uniq -u | tr '\n '\t' > missing_tags - name: Fetching missing tags run: |