Skip to content

Commit 309e99c

Browse files
authored
Merge pull request #291 from impresscms-dev/chore/workflows-align-with-generate-action
ci: align workflow setup with sibling phpdocs action
2 parents 90a7e65 + a8c0afd commit 309e99c

3 files changed

Lines changed: 40 additions & 42 deletions

File tree

.github/workflows/autorelease.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: Automatic releases
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 3 * * 0'
6+
- cron: '5 4 * */3 0'
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
711

812
jobs:
913
auto-release:

.github/workflows/dependabot.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Based on code from https://andre.arko.net/2022/05/15/automatic-dependabot-merges/
2+
3+
name: "Merge updates"
4+
5+
on:
6+
pull_request:
7+
branches:
8+
- "main"
9+
types:
10+
- "opened"
11+
- "synchronize"
12+
- "reopened"
13+
- "ready_for_review"
14+
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
19+
jobs:
20+
merge:
21+
name: "Merge"
22+
runs-on: "ubuntu-latest"
23+
if: ${{ github.actor == 'dependabot[bot]' }}
24+
steps:
25+
- name: "Approve pull request"
26+
uses: "juliangruber/approve-pull-request-action@v2"
27+
with:
28+
github-token: "${{ secrets.GITHUB_TOKEN }}"
29+
number: "${{ github.event.pull_request.number }}"
30+
31+
- name: "Enable auto-merge for Dependabot pull requests"
32+
run: gh pr merge --auto --squash "$PR_URL"
33+
env:
34+
PR_URL: ${{ github.event.pull_request.html_url }}
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/on-pull-request.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)