-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feat/add-params
# Conflicts: # ignite/pkg/goanalysis/goanalysis.go # ignite/pkg/goanalysis/goanalysis_test.go
- Loading branch information
Showing
107 changed files
with
3,175 additions
and
870 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
queue_rules: | ||
- name: default | ||
conditions: | ||
- "#approved-reviews-by>1" | ||
|
||
pull_request_rules: | ||
- name: automerge to main with label automerge and branch protection passing | ||
conditions: | ||
- "#approved-reviews-by>1" | ||
- base=main | ||
actions: | ||
queue: | ||
name: default | ||
method: squash | ||
commit_message_template: | | ||
{{ title }} (#{{ number }}) | ||
{{ body }} | ||
- name: backport patches to v28.x.y branch | ||
conditions: | ||
- base=main | ||
- label=backport/v28.x.y | ||
actions: | ||
backport: | ||
branches: | ||
- release/v28.x.y |
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 |
---|---|---|
|
@@ -2,10 +2,9 @@ name: Release Docker Image | |
|
||
on: | ||
release: | ||
types: [ published ] | ||
push: | ||
branches: | ||
- main | ||
types: [published] | ||
schedule: | ||
- cron: "0 0 * * *" # every day at midnight | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
|
@@ -15,14 +14,27 @@ jobs: | |
consecutiveness: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ignite/consecutive-workflow-action@main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: ignite/consecutive-workflow-action@main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
check-latest-run: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: octokit/[email protected] | ||
id: check_last_run | ||
with: | ||
route: GET /repos/${{github.repository}}/actions/workflows/release-docker.yml/runs?per_page=1&status=completed | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
outputs: | ||
last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }} | ||
|
||
docker: | ||
name: Push Docker image to Docker Hub | ||
if: needs.check-latest-run.outputs.last_sha != github.sha | ||
runs-on: ubuntu-latest | ||
needs: [ consecutiveness ] | ||
needs: [consecutiveness, check-latest-run] | ||
|
||
steps: | ||
- name: Check out the repo | ||
|
@@ -59,4 +71,3 @@ jobs: | |
platforms: linux/amd64,linux/arm64 | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
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,31 @@ | ||
name: Publish Ignite to HomeBrew | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
homebrew: | ||
name: Bump Homebrew formula | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract version | ||
id: extract-version | ||
# Strip a string prefix from the git tag name: | ||
run: | | ||
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
- uses: mislav/bump-homebrew-formula-action@v3 | ||
with: | ||
formula-name: ignite | ||
formula-path: Formula/i/ignite.rb | ||
homebrew-tap: Homebrew/homebrew-core | ||
base-branch: master | ||
download-url: https://github.com/ignite/cli/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz | ||
env: | ||
# the personal access token should have "repo" & "workflow" scopes | ||
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} |
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,10 +1,9 @@ | ||
name: Release nightly | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # every day at midnight | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
|
@@ -18,9 +17,22 @@ jobs: | |
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
check-latest-run: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: octokit/[email protected] | ||
id: check_last_run | ||
with: | ||
route: GET /repos/${{github.repository}}/actions/workflows/release-nightly.yml/runs?per_page=1&status=completed | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
outputs: | ||
last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }} | ||
|
||
release-nightly: | ||
if: needs.check-latest-run.outputs.last_sha != github.sha | ||
runs-on: ubuntu-latest | ||
needs: [consecutiveness] | ||
needs: [consecutiveness, check-latest-run] | ||
env: | ||
working-directory: go/src/github.com/ignite/cli | ||
|
||
|
@@ -51,15 +63,17 @@ jobs: | |
prerelease: true | ||
|
||
releases-binaries: | ||
if: needs.check-latest-run.outputs.last_sha != github.sha | ||
name: Release Go Binary | ||
needs: [consecutiveness, check-latest-run] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
goos: [linux, darwin] | ||
goarch: [amd64, arm64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: wangyoucao577/go-release-action@v1.40 | ||
- uses: wangyoucao577/go-release-action@v1.43 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
project_path: "./ignite/cmd/ignite" | ||
|
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
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
Oops, something went wrong.