From 4b3be19e562250e1c6f156b8843c88324a429cb1 Mon Sep 17 00:00:00 2001 From: Jeff Bonhag Date: Thu, 30 Jan 2020 09:42:56 -0500 Subject: [PATCH] Don't build gem on Vagrant forks This commit adds a check to see if push is happening against the main Vagrant repo. If not, it will skip the build-gem job. This prevents people from getting failure notifications when they push to the master branch of their Vagrant fork. --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21f2a6de7..a9f0b74eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,7 @@ on: jobs: build-gem: + if: github.repository == 'hashicorp/vagrant' name: Build Vagrant RubyGem runs-on: ubuntu-18.04 steps: