-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to check generateEmojiCodeMap
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
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}} |