From 1b34d0fcdacc7a4e8693d220dc34b4c7f0656811 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 9 Jun 2023 08:55:25 +0200 Subject: [PATCH 1/3] Fix setup-go actions --- .github/workflows/cron-licenses.yml | 5 +++-- .github/workflows/pull-db-tests.yml | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cron-licenses.yml b/.github/workflows/cron-licenses.yml index 17b0d686d83b8..8642049117e35 100644 --- a/.github/workflows/cron-licenses.yml +++ b/.github/workflows/cron-licenses.yml @@ -10,9 +10,10 @@ jobs: if: github.repository == 'go-gitea/gitea' steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: ">=1.20.1" + go-version: ">=1.20" + check-latest: true - run: make generate-license generate-gitignore timeout-minutes: 40 - name: push translations to repo diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml index cf08da151246b..9d0c890064654 100644 --- a/.github/workflows/pull-db-tests.yml +++ b/.github/workflows/pull-db-tests.yml @@ -41,7 +41,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -65,7 +66,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - run: make deps-backend - run: make backend env: @@ -123,7 +125,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -172,7 +175,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -203,7 +207,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql8" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -233,7 +238,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts' - run: make deps-backend From a713f54e391e8ae063d4214a1ac059ccadb18c24 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 9 Jun 2023 08:59:26 +0200 Subject: [PATCH 2/3] add temporary backend change to confirm actions work --- templates/home.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/home.tmpl b/templates/home.tmpl index 1f10f3c8d2ad8..8c08a3d229d63 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -1,4 +1,5 @@ {{template "base/head" .}} +
From dc1a55c12000a474d1b9e3e67547aa92c7273752 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 9 Jun 2023 09:29:22 +0200 Subject: [PATCH 3/3] Revert "add temporary backend change to confirm actions work" This reverts commit a713f54e391e8ae063d4214a1ac059ccadb18c24. --- templates/home.tmpl | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/home.tmpl b/templates/home.tmpl index 8c08a3d229d63..1f10f3c8d2ad8 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -1,5 +1,4 @@ {{template "base/head" .}} -