-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
70 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Description | ||
|
||
Add a short description of the change. If this is related to an issue, please add a reference to the issue. | ||
|
||
## CHANGELOG | ||
|
||
* [CHANGED] Describe your change here. Look at CHANGELOG.md to see the format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Prepare release | ||
|
||
on: | ||
pull_request: | ||
types: [ labeled ] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
prepare-release: | ||
name: Prepare release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get current version | ||
run: | | ||
CURRENT_VERSION=$(yq '.version' pubspec.yaml) | ||
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: pusher/public_actions | ||
token: ${{ secrets.PUSHER_CI_GITHUB_PRIVATE_TOKEN }} | ||
path: .github/actions | ||
- uses: ./.github/actions/prepare-version-bump | ||
id: bump | ||
with: | ||
current_version: ${{ env.CURRENT_VERSION }} | ||
- name: Push | ||
shell: bash | ||
run: | | ||
echo "$(yq '.version = "${{ steps.bump.outputs.new_version }}"' pubspec.yaml)" > pubspec.yaml | ||
git add pubspec.yaml CHANGELOG.md | ||
git commit -m "Bump to version ${{ steps.bump.outputs.new_version }}" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters