Skip to content

Commit

Permalink
Fix README.md on merge into master from PR example (#222)
Browse files Browse the repository at this point in the history
* Update README.md

Fix example based on discussion in #215

* Update README.md

Revert qoutes to match original config
  • Loading branch information
nmichlo committed Jun 20, 2023
1 parent a2c70ae commit f7a8973
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -42,7 +42,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 @@ -53,13 +53,14 @@ on:

jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }} # required for better experience using pre-releases
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'

- name: Bump version and push tag
Expand Down

0 comments on commit f7a8973

Please sign in to comment.