From d6e370ad97473314e07f70f091401ffdcfd2f666 Mon Sep 17 00:00:00 2001 From: MartinezAvellan Date: Wed, 18 Dec 2024 20:49:42 +0100 Subject: [PATCH 1/5] fix: remove if :bug: --- .github/workflows/brew-bump.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/brew-bump.yml b/.github/workflows/brew-bump.yml index bc857bdb..6e8ddb8a 100644 --- a/.github/workflows/brew-bump.yml +++ b/.github/workflows/brew-bump.yml @@ -8,7 +8,6 @@ jobs: bump_formula: runs-on: ubuntu-24.04 steps: - - if: github.event.pull_request.head.ref == 'main' - name: Update Homebrew Formula uses: dawidd6/action-homebrew-bump-formula@v4 with: From 7acb8494480685e708d808fafe179b8b110ade6e Mon Sep 17 00:00:00 2001 From: MartinezAvellan Date: Wed, 18 Dec 2024 20:55:57 +0100 Subject: [PATCH 2/5] fix: update git action :bug: --- .github/workflows/check-branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-branch.yml b/.github/workflows/check-branch.yml index 306dc937..a1cfcf10 100644 --- a/.github/workflows/check-branch.yml +++ b/.github/workflows/check-branch.yml @@ -33,7 +33,7 @@ jobs: git_commit_gpgsign: true - name: Check if PR is from develop or hotfix - if: github.event.pull_request.head.ref != 'develop' && github.event.pull_request.head.ref != 'hotfix' + if: github.event.pull_request.head.ref != 'develop' && startsWith(github.event.pull_request.head.ref, 'hotfix/') == false env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} GIT_AUTHOR_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }} From 804433391ea027c4275ce75ba967b473e151b5f7 Mon Sep 17 00:00:00 2001 From: MartinezAvellan Date: Wed, 18 Dec 2024 21:17:20 +0100 Subject: [PATCH 3/5] fix: change ubuntu-release to ubuntu-24.04 :bug: --- .github/workflows/build.yml | 2 +- .github/workflows/check-branch.yml | 2 +- .github/workflows/go-combined-analysis.yml | 4 ++-- .github/workflows/release-notification.yml | 2 +- .github/workflows/release.yml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fb5755b..15093f3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ permissions: jobs: build_and_publish: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: APP_NAME: midaz-ledger WORKING_DIR: components/ledger diff --git a/.github/workflows/check-branch.yml b/.github/workflows/check-branch.yml index a1cfcf10..7cdc07f3 100644 --- a/.github/workflows/check-branch.yml +++ b/.github/workflows/check-branch.yml @@ -12,7 +12,7 @@ on: jobs: check-branch: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/create-github-app-token@v1 id: app-token diff --git a/.github/workflows/go-combined-analysis.yml b/.github/workflows/go-combined-analysis.yml index 3ccc815e..330d3cee 100644 --- a/.github/workflows/go-combined-analysis.yml +++ b/.github/workflows/go-combined-analysis.yml @@ -21,7 +21,7 @@ permissions: jobs: CodeQL: name: Run CodeQL to Midaz - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 360 strategy: fail-fast: false @@ -50,7 +50,7 @@ jobs: GoLangCI-Lint: name: Run GoLangCI-Lint to Midaz - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/create-github-app-token@v1 id: app-token diff --git a/.github/workflows/release-notification.yml b/.github/workflows/release-notification.yml index 31941a30..19687b25 100644 --- a/.github/workflows/release-notification.yml +++ b/.github/workflows/release-notification.yml @@ -4,7 +4,7 @@ on: jobs: github-releases-to-discord: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/create-github-app-token@v1 id: app-token diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1986017..7dd17578 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ permissions: jobs: integration_tests: name: Integration test - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: WORKING_DIR: components/ledger steps: @@ -37,7 +37,7 @@ jobs: run: make test publish_release: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: integration_tests environment: name: create_release From 0c576cc4bddbcafe3b5a3277e19a284e36ff4672 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Wed, 18 Dec 2024 17:42:03 -0300 Subject: [PATCH 4/5] fix: added if pre release bump formule brew --- .github/workflows/brew-bump.yml | 3 ++- .github/workflows/release-notification.yml | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/brew-bump.yml b/.github/workflows/brew-bump.yml index 6e8ddb8a..7af4510e 100644 --- a/.github/workflows/brew-bump.yml +++ b/.github/workflows/brew-bump.yml @@ -9,7 +9,8 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Update Homebrew Formula + if: ${{ !github.event.release.prerelease }} uses: dawidd6/action-homebrew-bump-formula@v4 with: token: ${{ secrets.RELEASE_GITHUB_TOKEN }} - formula: mdz \ No newline at end of file + formula: mdz diff --git a/.github/workflows/release-notification.yml b/.github/workflows/release-notification.yml index 19687b25..a8472db7 100644 --- a/.github/workflows/release-notification.yml +++ b/.github/workflows/release-notification.yml @@ -17,7 +17,6 @@ jobs: - name: Github Releases To Discord uses: SethCohen/github-releases-to-discord@v1.13.1 - if: '!github.event.prerelease' with: webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} color: "2105893" From ad0770083c64164c78856ddf044b115e9294764e Mon Sep 17 00:00:00 2001 From: lerian-studio Date: Wed, 18 Dec 2024 20:44:14 +0000 Subject: [PATCH 5/5] chore(release): update version in .env.example to v1.33.0 --- components/audit/.env.example | 2 +- components/ledger/.env.example | 2 +- components/mdz/.env.example | 2 +- components/transaction/.env.example | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/audit/.env.example b/components/audit/.env.example index 3006e17b..44e1c990 100644 --- a/components/audit/.env.example +++ b/components/audit/.env.example @@ -2,7 +2,7 @@ # ENV_NAME=production # APP -VERSION=v1.31.1 +VERSION=v1.33.0 SERVER_PORT=3005 SERVER_ADDRESS=:${SERVER_PORT} diff --git a/components/ledger/.env.example b/components/ledger/.env.example index f9d5ad64..1d886913 100644 --- a/components/ledger/.env.example +++ b/components/ledger/.env.example @@ -4,7 +4,7 @@ # ENV_NAME=production # APP -VERSION=v1.31.1 +VERSION=v1.33.0 SERVER_PORT=3000 SERVER_ADDRESS=:${SERVER_PORT} diff --git a/components/mdz/.env.example b/components/mdz/.env.example index 3dec500c..37b06c78 100644 --- a/components/mdz/.env.example +++ b/components/mdz/.env.example @@ -2,4 +2,4 @@ CLIENT_ID=9670e0ca55a29a466d31 CLIENT_SECRET=dd03f916cacf4a98c6a413d9c38ba102dce436a9 URL_API_AUTH=http://127.0.0.1:8080 URL_API_LEDGER=http://127.0.0.1:3000 -VERSION=v1.31.1 +VERSION=v1.33.0 diff --git a/components/transaction/.env.example b/components/transaction/.env.example index ac7190a8..8bc4740b 100644 --- a/components/transaction/.env.example +++ b/components/transaction/.env.example @@ -4,7 +4,7 @@ # ENV_NAME=production # APP -VERSION=v1.31.1 +VERSION=v1.33.0 APP_CONTEXT=/transaction/v1 SERVER_PORT=3002 SERVER_ADDRESS=:${SERVER_PORT}