From 2fdace0736266b0e604234bd0b13574fcec6160f Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Mon, 9 Dec 2024 16:46:05 +0100 Subject: [PATCH 1/2] Testing git information in github action --- .github/workflows/push.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ebb3e75d4a..c98ff0e7a4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -30,6 +30,12 @@ jobs: - name: Checkout repository and submodules uses: actions/checkout@v4 + - name: Query git + run: | + git rev-parse --abbrev-ref HEAD + git describe --all + git describe + - name: Setup Go uses: actions/setup-go@v5 with: From a0e18e1197cf1efac746fb018e3d6db98dbe26ed Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Mon, 9 Dec 2024 16:48:08 +0100 Subject: [PATCH 2/2] ignore errors --- .github/workflows/push.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c98ff0e7a4..35df09fd63 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -32,9 +32,9 @@ jobs: - name: Query git run: | - git rev-parse --abbrev-ref HEAD - git describe --all - git describe + git rev-parse --abbrev-ref HEAD || true + git describe --all || true + git describe || true - name: Setup Go uses: actions/setup-go@v5