Skip to content

Commit

Permalink
fix CI publish failure. add write permission in publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Nov 19, 2023
1 parent 2a304db commit a212a0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write # needs to push tags
if: startsWith(github.head_ref, 'releases/v') && github.event.pull_request.merged == true
env:
REPO: https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # これがないとリリースを作成できない
contents: write # needs for goreleaser
steps:
# チェックアウト
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/versionup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
versionup:
runs-on: ubuntu-latest
permissions:
contents: write # this line requires for release
contents: write # needs for push changes
steps:
- name: Get branches
id: vars
Expand Down
6 changes: 4 additions & 2 deletions .templates/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gibo-wrapper

[![Build Status](https://travis-ci.org/tamada/gibo-wrapper.svg?branch=master)](https://travis-ci.org/tamada/gibo-wrapper)
[![build](https://github.com/tamada/gibo-wrapper/actions/workflows/build.yaml/badge.svg)](https://github.com/tamada/gibo-wrapper/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/tamada/gibo-wrapper/badge.svg?branch=main)](https://coveralls.io/github/tamada/gibo-wrapper?branch=main)
[![Go Report Card](https://goreportcard.com/badge/github.com/tamada/gibo-wrapper)](https://goreportcard.com/report/github.com/tamada/gibo-wrapper)

Expand Down Expand Up @@ -38,6 +38,8 @@ make

## Additional Commands

In the following example, `gibo` command is actually `gibo-wrapper`, it is aliased.

### `list-ignore` command

list boilerplates of `.gitignore` files in the current directory.
Expand Down Expand Up @@ -97,7 +99,7 @@ In the use of `gibo`, adding/removing boilerplates may cause the duplication of

## `init` command

`init` command is for initializing `gibo`` and `gibo-wrapper` commands in the shell configuration file.
`init` command is for initializing `gibo` and `gibo-wrapper` commands in the shell configuration file.
Add the following line in your shell configuration file, such as `.zshrc` and `.bashrc`.

```sh
Expand Down

0 comments on commit a212a0d

Please sign in to comment.