From b872f99597f857ba1096201fec4c4e3c7b459e73 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Wed, 27 Mar 2024 03:13:26 -0700 Subject: [PATCH] Update sync.yml --- .github/workflows/sync.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 5a9e9d59..19c45bed 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -8,14 +8,16 @@ on: jobs: sync-release-branch: runs-on: ubuntu-latest - if: startsWith(github.event.release.tag_name, 'v1') + if: ${{ github.repository_owner == 'foundry-rs' && startsWith(github.event.release.tag_name, 'v1') }} steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: v1 + # the email is derived from the bots user id + # found here: https://api.github.com/users/github-actions%5Bbot%5D - name: Configure Git run: | git config user.name github-actions[bot]