Skip to content

Commit 8577cca

Browse files
limiting-factorlimiting-factor
authored andcommitted
chore(ci): workflow showing Go coverage of a pull request (followup) (#13634)
Checkout the pull request head explicitly because the SHA associated with an issue_event by default is always the tip of the default branch. As a result the test will run on the default branch and not the pull request. Refs forgejo/forgejo!13613 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13634 Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org> Reviewed-by: Clouds <me@cloudsftp.de>
1 parent e045968 commit 8577cca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.forgejo/workflows/coverage-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
options: --tmpfs /data:noatime,uid=1000,gid=1000
3636
steps:
3737
- uses: https://data.forgejo.org/actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38+
with:
39+
ref: "refs/pull/${{ forgejo.event.issue.number }}/head"
3840
- uses: ./.forgejo/workflows-composite/setup-env
3941
- name: install git >= 2.42
4042
uses: ./.forgejo/workflows-composite/apt-install-from
@@ -51,6 +53,6 @@ jobs:
5153
TEST_MINIO_ENDPOINT: minio:9000
5254
TEST_LDAP: 1
5355
TEST_REDIS_SERVER: cacher:6379
54-
- uses: https://codeberg.org/clouds666/unkai@aea908dd6080cf6d8f3dee8dbf3b9d4e082242f0 # v0.2.0
56+
- uses: https://codeberg.org/clouds666/unkai@v0.2.1
5557
with:
5658
token: ${{ forgejo.TOKEN }}

0 commit comments

Comments
 (0)