From 08fb7550a580d79a6276db251d6974399adf09b6 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Sat, 1 Jul 2023 14:55:34 -0700 Subject: [PATCH] Add GitHub Action to pull scala-project-template --- .github/workflows/scala-project-template.yml | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/scala-project-template.yml diff --git a/.github/workflows/scala-project-template.yml b/.github/workflows/scala-project-template.yml new file mode 100644 index 0000000..2323a1f --- /dev/null +++ b/.github/workflows/scala-project-template.yml @@ -0,0 +1,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 aws-actions/configure-aws-credentials to assume an AWS role + id-token: write + # 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 + with: + ref: template + repository: Atry/scala-project-template + - uses: peter-evans/create-pull-request@v5 + with: + branch: update/${{github.ref_name}}/scala-project-template + title: Update scala-project-template + token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}