Skip to content

Commit

Permalink
Only run merge-scheduler workflow if it's not a fork (#3267)
Browse files Browse the repository at this point in the history
  • Loading branch information
julieg18 authored and iesahin committed Apr 11, 2022
1 parent b3e8fad commit 108417a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/merge-schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ on:
jobs:
merge_schedule:
runs-on: ubuntu-latest
if:
${{ github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- uses: gr2m/merge-schedule-action@v1
with:
# Merge method to use. Possible values are merge, squash or
# rebase. Default is merge.
merge_method: squash
# Time zone to use. Default is UTC.
time_zone: "America/Los_Angeles"
time_zone: 'America/Los_Angeles'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 108417a

Please sign in to comment.