Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wants working on exact time #85

Open
sakeeljawfer opened this issue Jun 8, 2023 · 1 comment
Open

wants working on exact time #85

sakeeljawfer opened this issue Jun 8, 2023 · 1 comment

Comments

@sakeeljawfer
Copy link

sakeeljawfer commented Jun 8, 2023

name: Merge Schedule

on:
  pull_request:
    types:
      - opened
      - edited
      - synchronize
  schedule:
    # https://crontab.guru/every-hour
    - cron: '0 * * * *'

jobs:
  merge_schedule:
    runs-on: ubuntu-latest
    steps:
      - uses: gr2m/merge-schedule-action@v2
        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'
          # Require all pull request statuses to be successful before
          # merging. Default is `false`.
          require_statuses_success: 'true'
          # Label to apply to the pull request if the merge fails. Default is
          # `automerge-fail`.
          automerge_fail_label: 'merge-schedule-failed'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@gr2m
Copy link
Owner

gr2m commented Jun 10, 2023

    # https://crontab.guru/every-hour
    - cron: '0 * * * *'

The action runs only once per hour. So that's the interval at which the action checks for pull requests to merge. You can reduce the interval to every 15 minutes with */15 * * * *. I can't get much lower than that, the actions just won't run that often

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants