Skip to content

Commit

Permalink
Merge pull request #176 from tsuyoshicho/update/permission
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho authored Oct 2, 2021
2 parents a991640 + 3ad5abb commit 1b0db04
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/depup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
repository_dispatch:
types: [depup]
workflow_dispatch:
permissions:
contents: write
pull-requests: write

jobs:
reviewdog:
Expand Down Expand Up @@ -35,4 +38,3 @@ jobs:
This PR is auto generated by [depup workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}).
branch: depup/${{ steps.depup.outputs.repo }}
labels: "bump:minor"

2 changes: 2 additions & 0 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
pull_request:
types:
- labeled
permissions:
contents: write

jobs:
release-check:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- master
tags:
- 'v*.*.*'
permissions:
contents: write

jobs:
release:
Expand Down Expand Up @@ -41,14 +43,12 @@ jobs:

# Create release.
- name: Create release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
if: "steps.tag.outputs.value != ''"
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.value }}
release_name: Release ${{ steps.tag.outputs.value }}
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ steps.tag.outputs.value }}
body: ${{ steps.bumpr.outputs.message }}
tag_name: ${{ steps.tag.outputs.value }}
draft: false
prerelease: false
3 changes: 3 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- master
pull_request:
permissions:
pull-requests: write

jobs:
shellcheck:
name: runner / shellcheck
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- master
pull_request:
permissions:
pull-requests: write

jobs:
test-check:
name: runner / textlint (github-check)
Expand Down Expand Up @@ -51,4 +54,3 @@ jobs:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
textlint_flags: "doc/**"

3 changes: 3 additions & 0 deletions .github/workflows/update_semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- '**'
tags:
- 'v*.*.*'
permissions:
contents: write

jobs:
update-semver:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1b0db04

Please sign in to comment.