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

Always merges, regardless of date/time set #83

Open
5starkarma opened this issue Apr 22, 2023 · 0 comments
Open

Always merges, regardless of date/time set #83

5starkarma opened this issue Apr 22, 2023 · 0 comments

Comments

@5starkarma
Copy link

I have the job set to merge at 10AM UTC and I schedule it for days in the future, but it always instantly merges..

name: Merge to Master Scheduled Task

on:
  workflow_run:
    workflows: ["Build and Test"]
    types: [completed]
  schedule:
    - cron: 0 10 * * *

jobs:
  merge_schedule:
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/development' && github.event.workflow_run.conclusion == 'success'
    steps:
      - uses: gr2m/merge-schedule-action@v2
        with:
          automerge_fail_label: 'merge-schedule-failed'
        env:
          GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
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

1 participant