Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sync-release-version.yml #30

Merged
merged 9 commits into from
Feb 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* bumpversion:
* sync-release-version:

### Description

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sync-release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Bumpversion release version.
uses: tj-actions/[email protected]
id: bumpversion
- name: Sync release version.
uses: tj-actions/sync-release-version@v8
id: sync-release-version
with:
pattern: 'tj-actions/bumpversion@'
pattern: 'tj-actions/sync-release-version@'
paths: |
README.md
- name: Create Pull Request
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: Test bumpversion
name: Test sync-release-version
steps:
- name: Checkout
uses: actions/checkout@v2
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
- name: Bumpversion
- name: Sync release Version
uses: ./
id: bumpversion
id: sync-release-version
with:
current_version: '1.0.1'
new_version: '1.0.2'
Expand All @@ -43,12 +43,12 @@ jobs:
cat test/subdir/README.md
exit 1
- name: Validate old_version output.
if: steps.bumpversion.outputs.old_version != '1.0.1'
if: steps.sync-release-version.outputs.old_version != '1.0.1'
run: |
echo "Invalid previous version ${{ steps.bumpversion.outputs.old_version }}: Expected 1.0.1"
echo "Invalid previous version ${{ steps.sync-release-version.outputs.old_version }}: Expected 1.0.1"
exit 1
- name: Validate new_version output.
if: steps.bumpversion.outputs.new_version != '1.0.2'
if: steps.sync-release-version.outputs.new_version != '1.0.2'
run: |
echo "Invalid new version ${{ steps.bumpversion.outputs.new_version }}: Expected 1.0.2"
echo "Invalid new version ${{ steps.sync-release-version.outputs.new_version }}: Expected 1.0.2"
exit 1
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![CI](https://github.com/tj-actions/bumpversion/workflows/CI/badge.svg)](https://github.com/tj-actions/bumpversion/actions?query=workflow%3ACI)
[![Update release version.](https://github.com/tj-actions/bumpversion/workflows/Update%20release%20version./badge.svg)](https://github.com/tj-actions/bumpversion/actions?query=workflow%3A%22Update+release+version.%22)
[![CI](https://github.com/tj-actions/sync-release-version/workflows/CI/badge.svg)](https://github.com/tj-actions/sync-release-version/actions?query=workflow%3ACI)
[![Update release version.](https://github.com/tj-actions/sync-release-version/workflows/Update%20release%20version./badge.svg)](https://github.com/tj-actions/sync-release-version/actions?query=workflow%3A%22Update+release+version.%22)

bumpversion
-----------
sync-release-version
--------------------

Usage
-----
Expand All @@ -17,17 +17,17 @@ Update files that reference a project version with a new release number.
- uses: actions/checkout@v2
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Bumpversion release version.
uses: tj-actions/bumpversion@v7.2
id: bumpversion
- name: Sync release version.
uses: tj-actions/sync-release-version@v7.2
id: sync-release-version
with:
current_version: '1.0.1' # Omit to use git tag.
new_version: '1.0.2' # Omit when running on a release action.
paths: |
README.md
test/subdir/README.md
- run: |
echo "Upgraded from ${{ steps.bumpversion.outputs.old_version }} -> ${{ steps.bumpversion.outputs.new_version }}"
echo "Upgraded from ${{ steps.sync-release-version.outputs.old_version }} -> ${{ steps.sync-release-version.outputs.new_version }}"
```


Expand All @@ -47,21 +47,21 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Bumpversion release version.
uses: tj-actions/bumpversion@v7.2
id: bumpversion
- name: Sync release version.
uses: tj-actions/sync-release-version@v7.2
id: sync-release-version
with:
pattern: 'tj-actions/bumpversion@'
pattern: 'tj-actions/sync-release-version@'
paths: |
README.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: "master"
title: "Upgraded to ${{ steps.bumpversion.outputs.new_version }}"
branch: "upgrade-to-${{ steps.bumpversion.outputs.new_version }}"
commit-message: "Upgraded from ${{ steps.bumpversion.outputs.old_version }} -> ${{ steps.bumpversion.outputs.new_version }}"
body: "View [CHANGES](https://github.com/${{ github.repository }}/compare/${{ steps.bumpversion.outputs.old_version }}...${{ steps.bumpversion.outputs.new_version }})"
title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
branch: "upgrade-to-${{ steps.sync-release-version.outputs.new_version }}"
commit-message: "Upgraded from ${{ steps.sync-release-version.outputs.old_version }} -> ${{ steps.sync-release-version.outputs.new_version }}"
body: "View [CHANGES](https://github.com/${{ github.repository }}/compare/${{ steps.sync-release-version.outputs.old_version }}...${{ steps.sync-release-version.outputs.new_version }})"
reviewers: "jackton1"
```

Expand All @@ -81,8 +81,8 @@ Creating a new release `v6.8 -> v7` using the recommended configuration above.
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Bumpversion release version.
uses: tj-actions/bumpversion@v6.8
- name: Sync release version.
uses: tj-actions/sync-release-version@v6.8
```

#### AFTER
Expand All @@ -93,8 +93,8 @@ Creating a new release `v6.8 -> v7` using the recommended configuration above.
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Bumpversion release version.
uses: tj-actions/bumpversion@v7
- name: Sync release version.
uses: tj-actions/sync-release-version@v7
```


Expand Down Expand Up @@ -144,7 +144,7 @@ This package was created with [Cookiecutter](https://github.com/cookiecutter/coo
Report Bugs
-----------

Report bugs at https://github.com/tj-actions/bumpversion/issues.
Report bugs at https://github.com/tj-actions/sync-release-version/issues.

If you are reporting a bug, please include:

Expand Down