generated from giantswarm/template-app
-
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
97ee6ea
commit 47f113d
Showing
7 changed files
with
23 additions
and
58 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# [email protected].2-dev | ||
# [email protected].1 | ||
# | ||
name: 'Values and schema' | ||
on: | ||
|
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: | ||
# | ||
# [email protected].2-dev | ||
# [email protected].1 | ||
# | ||
name: Create Release | ||
on: | ||
|
@@ -102,12 +102,6 @@ jobs: | |
download_url: "https://github.com/fsaintjacques/${binary}-tool/archive/${version}.tar.gz" | ||
tarball_binary_path: "*/src/${binary}" | ||
smoke_test: "${binary} --version" | ||
- name: Generate a token | ||
id: generate_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.HERALD_APP_ID }} | ||
private-key: ${{ secrets.HERALD_APP_KEY }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Update project.go | ||
|
@@ -128,22 +122,22 @@ jobs: | |
fi | ||
- name: Set up git identity | ||
run: | | ||
git config --local user.email "149080493+heraldbot[bot]@users.noreply.github.com" | ||
git config --local user.name "HeraldBot[bot]" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "taylorbot" | ||
- name: Commit changes | ||
run: | | ||
file="${{ needs.gather_facts.outputs.project_go_path }}" | ||
git add $file | ||
git commit -m "Bump version to ${{ steps.update_project_go.outputs.new_version }}" | ||
- name: Push changes | ||
env: | ||
REMOTE_REPO: "https://${{ github.actor }}:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git" | ||
REMOTE_REPO: "https://${{ github.actor }}:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/${{ github.repository }}.git" | ||
branch: "${{ github.ref }}-version-bump" | ||
run: | | ||
git push "${REMOTE_REPO}" HEAD:${{ env.branch }} | ||
- name: Create PR | ||
env: | ||
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token }}" | ||
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}" | ||
base: "${{ github.ref }}" | ||
branch: "${{ github.ref }}-version-bump" | ||
version: "${{ needs.gather_facts.outputs.version }}" | ||
|
@@ -159,17 +153,9 @@ jobs: | |
outputs: | ||
upload_url: ${{ steps.create_gh_release.outputs.upload_url }} | ||
steps: | ||
- name: Generate a token | ||
id: generate_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.HERALD_APP_ID }} | ||
private-key: ${{ secrets.HERALD_APP_KEY }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
persist-credentials: false | ||
ref: ${{ github.sha }} | ||
- name: Ensure correct version in project.go | ||
if: ${{ needs.gather_facts.outputs.project_go_path != '' && needs.gather_facts.outputs.ref_version != 'true' }} | ||
|
@@ -185,22 +171,22 @@ jobs: | |
path: ./CHANGELOG.md | ||
- name: Set up git identity | ||
run: | | ||
git config --local user.email "149080493+heraldbot[bot]@users.noreply.github.com" | ||
git config --local user.name "HeraldBot[bot]" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "taylorbot" | ||
- name: Create tag | ||
run: | | ||
version="${{ needs.gather_facts.outputs.version }}" | ||
git tag "v$version" ${{ github.sha }} | ||
- name: Push tag | ||
env: | ||
REMOTE_REPO: "https://${{ github.actor }}:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git" | ||
REMOTE_REPO: "https://${{ github.actor }}:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/${{ github.repository }}.git" | ||
run: | | ||
git push "${REMOTE_REPO}" --tags | ||
- name: Create release | ||
id: create_gh_release | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token }}" | ||
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}" | ||
with: | ||
body: ${{ steps.changelog_reader.outputs.changes }} | ||
tag: "v${{ needs.gather_facts.outputs.version }}" | ||
|
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: | ||
# | ||
# [email protected].2-dev | ||
# [email protected].1 | ||
# | ||
name: Create Release PR | ||
on: | ||
|
@@ -48,18 +48,6 @@ jobs: | |
skip: ${{ steps.pr_exists.outputs.skip }} | ||
version: ${{ steps.gather_facts.outputs.version }} | ||
steps: | ||
- name: Generate a token | ||
id: generate_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.HERALD_APP_ID }} | ||
private-key: ${{ secrets.HERALD_APP_KEY }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
persist-credentials: false | ||
ref: ${{ needs.gather_facts.outputs.branch }} | ||
- name: Gather facts | ||
id: gather_facts | ||
run: | | ||
|
@@ -77,7 +65,7 @@ jobs: | |
version="$(echo $head | awk -F# '{print $NF}')" | ||
if [[ $version =~ ^major|minor|patch$ ]]; then | ||
gh auth login --with-token <<<$(echo -n ${{ steps.generate_token.outputs.token }}) | ||
gh auth login --with-token <<<$(echo -n ${{ secrets.TAYLORBOT_GITHUB_ACTION }}) | ||
gh_api_get_latest_release_version() | ||
{ | ||
if ! version="$(gh api "repos/$1/releases/latest" --jq '.tag_name[1:] | split(".") | .[0], .[1], .[2]')" | ||
|
@@ -136,13 +124,12 @@ jobs: | |
- name: Check if PR exists | ||
id: pr_exists | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}" | ||
run: | | ||
head="${{ steps.gather_facts.outputs.branch }}" | ||
branch="${head#refs/heads/}" # Strip "refs/heads/" prefix. | ||
if gh pr list --head "${branch}" --json state --jq '.[].state' | grep -i 'open' > /dev/null; then | ||
gh pr list --head "${branch}" | ||
if gh pr view --repo "${{ github.repository }}" "${branch}" --json state --jq .state | grep -i 'open' > /dev/null; then | ||
gh pr view --repo "${{ github.repository }}" "${branch}" | ||
echo "skip=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "skip=false" >> $GITHUB_OUTPUT | ||
|
@@ -164,17 +151,9 @@ jobs: | |
with: | ||
binary: "architect" | ||
version: "6.11.0" | ||
- name: Generate a token | ||
id: generate_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.HERALD_APP_ID }} | ||
private-key: ${{ secrets.HERALD_APP_KEY }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
persist-credentials: false | ||
ref: ${{ needs.gather_facts.outputs.branch }} | ||
- name: Prepare release changes | ||
run: | | ||
|
@@ -229,8 +208,8 @@ jobs: | |
fi | ||
- name: Set up git identity | ||
run: | | ||
git config --local user.email "149080493+heraldbot[bot]@users.noreply.github.com" | ||
git config --local user.name "HeraldBot[bot]" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "taylorbot" | ||
- name: Create release commit | ||
env: | ||
version: "${{ needs.gather_facts.outputs.version }}" | ||
|
@@ -239,12 +218,12 @@ jobs: | |
git commit -m "Release v${{ env.version }}" | ||
- name: Push changes | ||
env: | ||
remote_repo: "https://${{ github.actor }}:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git" | ||
remote_repo: "https://${{ github.actor }}:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/${{ github.repository }}.git" | ||
run: | | ||
git push "${remote_repo}" HEAD:${{ needs.gather_facts.outputs.branch }} | ||
- name: Create PR | ||
env: | ||
GITHUB_TOKEN: "${{ steps.generate_token.outputs.token }}" | ||
GITHUB_TOKEN: "${{ secrets.TAYLORBOT_GITHUB_ACTION }}" | ||
base: "${{ needs.gather_facts.outputs.base }}" | ||
version: "${{ needs.gather_facts.outputs.version }}" | ||
run: | | ||
|
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: | ||
# | ||
# [email protected].2-dev | ||
# [email protected].1 | ||
# | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# DO NOT EDIT. Generated with: | ||
# | ||
# devctl@6.15.1 | ||
# devctl@6.17.1 | ||
# | ||
|
||
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@6.15.1 | ||
# devctl@6.17.1 | ||
# | ||
|
||
##@ 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