-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
0c29b57
commit 7398419
Showing
9 changed files
with
66 additions
and
15 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@5.3.0 | ||
# devctl@5.8.0 | ||
# | ||
name: Create Release | ||
on: | ||
|
@@ -120,11 +120,13 @@ jobs: | |
echo "error: no changes in \"$file\"" >&2 | ||
exit 1 | ||
fi | ||
- name: Set up git identity | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Commit changes | ||
run: | | ||
file="${{ needs.gather_facts.outputs.project_go_path }}" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add $file | ||
git commit -m "Bump version to ${{ steps.update_project_go.outputs.new_version }}" | ||
- name: Push changes | ||
|
@@ -167,10 +169,13 @@ jobs: | |
with: | ||
version: ${{ needs.gather_facts.outputs.version }} | ||
path: ./CHANGELOG.md | ||
- name: Set up git identity | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Create tag | ||
run: | | ||
version="${{ needs.gather_facts.outputs.version }}" | ||
git config --local user.name "github-actions" | ||
git tag "v$version" ${{ github.sha }} | ||
- name: Push tag | ||
env: | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@5.3.0 | ||
# devctl@5.8.0 | ||
# | ||
name: Create Release PR | ||
on: | ||
|
@@ -140,18 +140,62 @@ jobs: | |
- name: Prepare release changes | ||
run: | | ||
architect prepare-release ${{ env.architect_flags }} --version "${{ needs.gather_facts.outputs.version }}" | ||
- name: Update version field in Chart.yaml | ||
run: | | ||
# Define chart_dir | ||
repository="${{ needs.gather_facts.outputs.repo_name }}" | ||
chart="helm/${repository}" | ||
# Check chart directory. | ||
if [ ! -d "${chart}" ] | ||
then | ||
echo "Could not find chart directory '${chart}', adding app suffix." | ||
# Add app suffix. | ||
chart="helm/${repository}-app" | ||
# Check chart directory with app suffix. | ||
if [ ! -d "${chart}" ] | ||
then | ||
echo "Could not find chart directory '${chart}', removing app suffix." | ||
# Remove app suffix. | ||
chart="helm/${repository%-app}" | ||
if [ ! -d "${chart}" ] | ||
then | ||
# Print error. | ||
echo "Could not find chart directory '${chart}', doing nothing." | ||
fi | ||
fi | ||
fi | ||
# Define chart YAML. | ||
chart_yaml="${chart}/Chart.yaml" | ||
# Check chart YAML. | ||
if [ -f "${chart_yaml}" ] | ||
then | ||
# check if version in Chart.yaml is templated using architect | ||
if [ $(grep -c "^version:.*\.Version.*$" "${chart_yaml}") = "0" ]; then | ||
yq -i '.version = "${{ needs.gather_facts.outputs.version }}"' "${chart_yaml}" | ||
fi | ||
fi | ||
- name: Bump go module defined in go.mod if needed | ||
run: | | ||
if [ "${{ needs.gather_facts.outputs.is_major }}" = true ] && test -f "go.mod"; then | ||
go install github.com/marwan-at-work/mod/cmd/[email protected].1 | ||
go install github.com/marwan-at-work/mod/cmd/[email protected].2 | ||
mod upgrade | ||
fi | ||
- name: Set up git identity | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Create release commit | ||
env: | ||
version: "${{ needs.gather_facts.outputs.version }}" | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "github-actions" | ||
git add -A | ||
git commit -m "Release v${{ env.version }}" | ||
- name: Push changes | ||
|
@@ -165,4 +209,4 @@ jobs: | |
base: "${{ needs.gather_facts.outputs.base }}" | ||
version: "${{ needs.gather_facts.outputs.version }}" | ||
run: | | ||
hub pull-request -f -m "Release v${{ env.version }}" -a ${{ github.actor }} -b ${{ env.base }} -h ${{ needs.gather_facts.outputs.branch }} | ||
hub pull-request -f -m "Release v${{ env.version }}" -a ${{ github.actor }} -b ${{ env.base }} -h ${{ needs.gather_facts.outputs.branch }} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@5.3.0 | ||
# devctl@5.8.0 | ||
# | ||
name: gitleaks | ||
|
||
|
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,2 @@ | ||
# This file is generated by https://github.com/giantswarm/github | ||
# Repository specific ignores should be added to .nancy-ignore |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@5.3.0 | ||
# devctl@5.8.0 | ||
# | ||
|
||
include Makefile.*.mk | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@5.3.0 | ||
# devctl@5.8.0 | ||
# | ||
|
||
##@ App | ||
|
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