Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/go-i18n.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Snyder <nickdsnyder@gmail.com>2021-03-04 06:12:14 +0300
committerGitHub <noreply@github.com>2021-03-04 06:12:14 +0300
commit5d2ec5fba990a664cbe711f626a9a448f894b793 (patch)
treebc6089faeb3916e7ad107583b2cb99d435132ef2
parentc587b0dfc11a01d42c0c5f9cea07d040f7a10788 (diff)
Fix workflow condition (#249)
-rw-r--r--.github/workflows/build.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 55d9460..b3d1e92 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -6,7 +6,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
- if: (github.event_name == 'push' && github.repository_owner == 'nicksnyder') || (github.event_name == 'pull_request' && github.repository_owner != 'nicksnyder')
+ if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v2
@@ -28,7 +28,7 @@ jobs:
build_1_9_7:
name: Build with Go 1.9.7
runs-on: ubuntu-latest
- if: (github.event_name == 'push' && github.repository_owner == 'nicksnyder') || (github.event_name == 'pull_request' && github.repository_owner != 'nicksnyder')
+ if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
steps:
- name: Install Go
uses: actions/setup-go@v2