Skip to content

Commit

Permalink
ci: auto merge and release on constant updates (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonoh authored Mar 3, 2021
1 parent 3dfd541 commit 50a691c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: automerge
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
check_suite:
types:
- completed
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: 'pascalgn/[email protected]'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
7 changes: 4 additions & 3 deletions .github/workflows/update-constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: update constants

on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'

workflow_dispatch:
inputs:
Expand Down Expand Up @@ -62,6 +62,7 @@ jobs:
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'fix: update ec2-types'
title: 'fix: update ec2-types'
commit-message: 'fix: update constants'
title: 'fix: update constants'
branch: ec2-types/patch
labels: automerge
17 changes: 17 additions & 0 deletions .github/workflows/update-latest-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:
branches: [master]

jobs:
semantic-release:
if: startsWith(github.event.head_commit.message, 'chore(release):')

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.checkout_ref }}

- name: update latest tag
run: git tag -f latest && git push -d origin latest && git push origin master --tags
12 changes: 12 additions & 0 deletions aws-spot-price.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,24 @@
// eslint
"eslint.validate": ["javascript", "typescript"],
"eslint.run": "onType",

// formatters
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

"files.watcherExclude": {
"**/.git/objects/**": true,
Expand Down

0 comments on commit 50a691c

Please sign in to comment.