-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (39 loc) · 1.21 KB
/
auto-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# GitHub Actions Virtual Environments
# https://github.com/actions/virtual-environments/
name: Auto-publish Newsletter
on:
# Uncomment for debugging to manually trigger workflow
#
# workflow_dispatch:
# inputs:
# pull-request:
# description: 'Pull request number'
# required: true
schedule:
# Begin at 07:00am PST or 08:00am PDT every day.
# Will keep checking every 30 minutes for 3 hours.
# MailChimp is scheduled for 10:00am daily.
# Cron runs in UTC
# PST is UTC-8:00
# Thus, UTC 15:00-8:00 == 7:00am PST
# https://crontab.guru/#0,30_15-18_*_*_*
- cron: "0,30 15-18 * * *"
jobs:
main:
name: Publish next issue
runs-on: ubuntu-latest
steps:
- name: current datetime
run: date
# https://github.com/marketplace/actions/auto-merge-pull-request
- name: auto-merge
uses: reitermarkus/automerge@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
merge-method: squash
squash-title: true
required-labels: auto-publish
# Uncomment for debugging to manually trigger workflow
#
# pull-request: ${{ github.event.inputs.pull-request }}
# dry-run: true