From dc4b1afbb68d8914299a702cc8b9f0a2a86c11c1 Mon Sep 17 00:00:00 2001 From: Sergey Fionov Date: Tue, 23 Jan 2024 10:32:07 +0200 Subject: [PATCH 1/3] FIx update json --- .github/workflows/workflow.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index d0c278a..8c13eab 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -45,10 +45,11 @@ jobs: pull_request_url.txt - name: update json - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'pull_request' run: | git config user.email "41898282+github-actions[bot]@users.noreply.github.com>" git config user.name "github-actions[bot]" + git fetch origin ./update.sh git push origin master ls -la From 30cbb943a9cbf65783835df47aeba6319c5d71cd Mon Sep 17 00:00:00 2001 From: Sergey Fionov Date: Tue, 23 Jan 2024 10:35:24 +0200 Subject: [PATCH 2/3] Fix --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 6675b19..7cee840 100755 --- a/update.sh +++ b/update.sh @@ -20,6 +20,6 @@ case version in EOF ) git add update.json - git commit -m "skipci: Update update.json" + git commit -m "skipci: Update update.json" || true ;; esac From 98a0a8e3ab14ab99a37e6d24da977ff71888672a Mon Sep 17 00:00:00 2001 From: Sergey Fionov Date: Tue, 23 Jan 2024 10:37:50 +0200 Subject: [PATCH 3/3] Remove test things --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 8c13eab..7a9a0d8 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -45,7 +45,7 @@ jobs: pull_request_url.txt - name: update json - if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'pull_request' + if: startsWith(github.ref, 'refs/tags/v') run: | git config user.email "41898282+github-actions[bot]@users.noreply.github.com>" git config user.name "github-actions[bot]"