From 6081116ce6a70c00b9f68c81bb26ff6978065fe1 Mon Sep 17 00:00:00 2001 From: Haruto Date: Sat, 20 Apr 2024 14:27:20 +0900 Subject: [PATCH] Add Workflow to automatically generate LINEBot modules (#52) --- .github/workflows/generate_modules.yml | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/generate_modules.yml diff --git a/.github/workflows/generate_modules.yml b/.github/workflows/generate_modules.yml new file mode 100644 index 0000000..0c235c7 --- /dev/null +++ b/.github/workflows/generate_modules.yml @@ -0,0 +1,43 @@ +name: Run generator + +on: + workflow_dispatch: + push: + branches: + - develop + +permissions: + contents: write + pull-requests: write + +jobs: + generate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: develop + submodules: recursive + + - name: update submodule + run: git submodule update --remote --recursive + + - name: Setup Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: generate line bot modules + run: make generate + + - uses: peter-evans/create-pull-request@v5 + with: + commit-message: Generate LINEBot modules + delete-branch: true + title: Generate line bot modules + body: Auto generate line bot modules + reviewers: nanato12 + assignees: octocat + labels: auto generate