Skip to content

Commit

Permalink
Add Workflow to automatically generate LINEBot modules (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanato12 authored Apr 20, 2024
1 parent c8d5d5d commit 6081116
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/generate_modules.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6081116

Please sign in to comment.