Skip to content

Commit 167f360

Browse files
authored
Enable running workflow to update line-openapi manually (#1021)
1 parent e3712de commit 167f360

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Definition of GitHub Actions.
2+
# Designed to working both LINE's and forked repository.
3+
#
4+
# Note:
5+
# Memory:
6+
# VM Spec = 2core, 7G RAM. as of 2019-10. https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions
7+
# There are possiblity that speed up build by setting xmx manually. But using default now.
8+
# Gradle Deamon:
9+
# Disabled via appending ~/.gradle/gradle.properties
10+
name: Update line-openapi manually
11+
on:
12+
workflow_dispatch
13+
14+
jobs:
15+
update:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
# Setup
20+
- uses: actions/checkout@v3
21+
with:
22+
submodules: recursive
23+
- name: Update submodules
24+
run: git submodule update --remote --recursive
25+
- uses: actions/checkout@v3
26+
run: |
27+
echo "CURRENT_DATETIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
28+
git config user.name github-actions
29+
git config user.email [email protected]
30+
git checkout -b update-diff-${{ env.CURRENT_DATETIME }}
31+
git add .
32+
git commit -m "Update line-openapi"
33+
git push origin update-diff-${{ env.CURRENT_DATETIME }}
34+
gh pr create -B ${{ github.ref_name }} --title "Update line-openapi" --body ""
35+
env:
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)