Skip to content

Commit

Permalink
Add workflow to check generateEmojiCodeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
kyokomi committed Feb 18, 2023
1 parent 44f9676 commit aa48858
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check_generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: check generateEmojiCodeMap

on:
schedule:
- cron: '0 2 * * 1' # Every Monday at 11am JST

jobs:
lint:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- run: go version
- run: go generate
- run: |
# Define vars
export DATE=$(env TZ=Asia/Tokyo date +%y%m%d%H%M)
export BRANCH_NAME=feature/generateEmojiCodeMap/${DATE}
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV
# Setup git identity
git config --global user.email "email@kyokomi.dev"
git config --global user.name "gh-workflow-release"
## Create branch
git add -u && git commit -m "Update generateEmojiCodeMap"
- uses: peter-evans/create-pull-request@v3
with:
title: "Update generateEmojiCodeMap: ${{env.BRANCH_NAME}}"
base: master
branch: ${{env.BRANCH_NAME}}

0 comments on commit aa48858

Please sign in to comment.