Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix example based on discussion in anothrNick#215
  • Loading branch information
nmichlo committed Dec 13, 2022
1 parent 11ca940 commit 50fb4b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -35,7 +35,7 @@ jobs:
```

```yaml
# example 2: on merge to master
# example 2: on merge to master from pull request (recommended)
name: Bump version
on:
pull_request:
Expand All @@ -45,12 +45,13 @@ on:
- master
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: '0'
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: "0"

- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1
Expand Down

0 comments on commit 50fb4b7

Please sign in to comment.