-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1854 from hackmdio/release/2.5.3
Release 2.5.3
- Loading branch information
Showing
7 changed files
with
75 additions
and
3 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,6 @@ | ||
# Test github actions with act | ||
|
||
```bash | ||
act pull_request --container-architecture linux/arm64 -e .github/tests/pull-request.json -j ch | ||
eck-release-pr -P ubuntu-latest=catthehacker/ubuntu:act-latest | ||
``` |
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,10 @@ | ||
{ | ||
"pull_request": { | ||
"head": { | ||
"ref": "release/1.2.3" | ||
}, | ||
"base": { | ||
"ref": "master" | ||
} | ||
} | ||
} |
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,41 @@ | ||
name: Release PR Checks | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check-release-pr: | ||
if: startsWith(github.head_ref, 'release/') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check for release-notes updates | ||
run: | | ||
if ! git diff --exit-code origin/develop -- public/docs/release-notes.md; then | ||
echo "Release notes updated." | ||
else | ||
echo "Error: Release notes not updated in the PR." | ||
exit 1 | ||
fi | ||
- name: Compare package.json version with master | ||
run: | | ||
git fetch origin master | ||
MASTER_PACKAGE_VERSION=$(git show origin/master:package.json | jq -r '.version') | ||
BRANCH_PACKAGE_VERSION=$(jq -r '.version' package.json) | ||
if [ "$BRANCH_PACKAGE_VERSION" != "$MASTER_PACKAGE_VERSION" ]; then | ||
echo "Version bumped in package.json." | ||
else | ||
echo "Error: Version in package.json has not been bumped." | ||
exit 1 | ||
fi | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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