forked from ThoughtWorksInc/todo
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 916 Bytes
/
scala-project-template.yml
File metadata and controls
30 lines (28 loc) · 916 Bytes
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
on:
push:
branches-ignore:
- "update/**"
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
name: Update Scala project template
jobs:
update-scala-project-template:
permissions:
# for peter-evans/create-pull-request to create branch
contents: write
# for peter-evans/create-pull-request to create a PR
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: git fetch https://github.com/Atry/scala-project-template.git template
- run: git reset --hard FETCH_HEAD
- uses: peter-evans/create-pull-request@v5
continue-on-error: true
with:
delete-branch: true
base: ${{github.ref_name}}
branch: update/${{github.ref_name}}/scala-project-template
title: Update scala-project-template
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}