Skip to content

Commit

Permalink
feat: add bump_example
Browse files Browse the repository at this point in the history
  • Loading branch information
sylc committed Jun 15, 2022
1 parent 4dc699c commit 91be4a4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: version_bump

on:
workflow_dispatch:
inputs:
releaseKind:
description: 'Kind of version bump'
default: 'minor'
type: choice
options:
- patch
- minor
- major
required: true

jobs:
build:
name: version bump
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Set up Deno
uses: denoland/setup-deno@v1.0.0
with:
deno-version: 1.x

- name: setup git config
run: |
git config user.name "@actions"
git config user.email "spanner@bot"
- name: Run version bump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
deno task release ${{github.event.inputs.releaseKind}}
1 change: 1 addition & 0 deletions plugins/github/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export async function verifyToken(token: string): Promise<Response> {
if (scopes && scopes.includes("repo")) {
return { ok: true };
} else {
console.log(scopes)
return { ok: false, err: "Missing <repo> scope" };
}
}
Expand Down

0 comments on commit 91be4a4

Please sign in to comment.