-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b98266
commit eeda4c5
Showing
3 changed files
with
61 additions
and
1 deletion.
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,53 @@ | ||
--- | ||
name: Release 📈 | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
workflow_call: | ||
|
||
concurrency: | ||
group: release-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
create-release: | ||
name: ${{ vars.CI_IMAGE }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout project ⬇️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: NEWS.md and DESCRIPTION Version check 🏁 | ||
run: | | ||
DESC_VERSION=$(awk -F: '/Version:/{gsub(/[ ]+/,"") ; print $2}' DESCRIPTION | tr -d '\n' | xargs) | ||
NEWS_VERSION=$(awk '/^#+ /{print $3,$4; exit}' NEWS.md | tr -d '\n' | xargs) | ||
DESC_DEV_VERSION=$(echo $DESC_VERSION | awk -F '.' '{print $NF}') | ||
echo "NEWS.md version: $NEWS_VERSION" | ||
echo "DESCRIPTION version: $DESC_VERSION" | ||
if [ $DESC_DEV_VERSION -ge 9000 ]; then | ||
echo "✖️ DESCRIPTION file version is in development mode." | ||
echo "Please fix this." | ||
exit 1 | ||
fi | ||
if [ "$DESC_VERSION" = "$NEWS_VERSION" ]; then | ||
echo "✔️ NEWS.md and DESCRIPTION have the same version" | ||
exit 0 | ||
else | ||
echo "✖️ NEWS.md and DESCRIPTION have different versions" | ||
echo "Please fix this." | ||
exit 1 | ||
fi | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# dv.templates 0.0.0.9100 | ||
|
||
- add release checks |