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

Release v1.2.1: bug fixes in workflows #75

Merged
merged 3 commits into from
Apr 28, 2024
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/workflows/_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
changelog:
uses: obervinov/_templates/.github/workflows/changelog.yaml@main
pr:
uses: obervinov/_templates/.github/workflows/pr.yaml@release/v1.2.0 # will be updated to main after release
uses: obervinov/_templates/.github/workflows/pr.yaml@main
8 changes: 2 additions & 6 deletions .github/workflows/_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ on: # yamllint disable-line rule:truthy
paths: ['.github/workflows/**']

jobs:
lint:
uses: obervinov/_templates/.github/workflows/yamllint.yaml@main
changelog:
uses: obervinov/_templates/.github/workflows/changelog.yaml@main
create-release:
uses: obervinov/_templates/.github/workflows/release.yaml@main
# milestone:
# uses: obervinov/_templates/.github/workflows/milestone.yaml@main # will be uncommented after release
milestone:
uses: obervinov/_templates/.github/workflows/milestone.yaml@main
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
release_body=$(sed -n "/## $release_version /,/## v/p" CHANGELOG.md | sed '$ d' | sed 's/\[.*\]//g' | sed 's/[(|)]//g' | perl -pe 's/\n/\\n/g')
printf "Release body:\n%s\n" "$release_body"
# Create new PR
pr_title=$(printf %s: <description> "${{ github.ref }} | sed 's/refs\/heads\///'| sed 's/\// /g'")
pr_title=$(printf "Release %s" "echo ${{ github.ref }} | sed 's/refs\/heads\///'| sed 's/\// /g'")
curl -q -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" -X POST -d "{\"title\": \"$pr_title\", \"head\": \"${{ github.ref }}\", \"base\": \"main\", \"body\": \"$release_body\"}" https://api.github.com/repos/${{ github.repository_owner}}/${{ github.event.repository.name }}/pulls
printf "Created PR with number: %s\n" "$pr"
if: ${{ steps.find_pr.outputs.pr == null }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
workflow_versions+=("$versions")
done
# Get the smallest version
echo "version=$(printf "%s\n" "${workflow_versions[@]}" | sort -V | head -n 1)" >> $GITHUB_OUTPUT
echo "version=$(printf "%s\n" "${workflow_versions[@]}" | sort -V | head -n 1 | sed 's/@//g')" >> $GITHUB_OUTPUT
id: workflow_smallest_version

- name: Compare versions between README.md and workflows
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).


## v1.2.1 - 2024-04-28
### What's Changed
**Full Changelog**: https://github.com/obervinov/_templates/compare/v1.2.0...v1.2.1 by @obervinov in https://github.com/obervinov/_templates/pull/75
#### 🐛 Bug Fixes
* [Workflow readme: Not working comparing version in workflow as expected](https://github.com/obervinov/_templates/issues/74)
* Change image repository name in the pytest workflow `ghcr.io/obervinov/tools/vault:1.13.2` -> `ghcr.io/obervinov/images/vault:1.13.2`
* [Workflow local _release: failed run changelog verify](https://github.com/obervinov/_templates/issues/73)


## v1.2.0 - 2024-04-28
### What's Changed
**Full Changelog**: https://github.com/obervinov/_templates/compare/v1.1.1...v1.2.0 by @obervinov in https://github.com/obervinov/_templates/pull/71
Expand Down
Loading