Update Scala project template #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |