Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: auto merge and release on constant updates #337

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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