diff --git a/.github/workflows/cd_next.yml b/.github/workflows/cd_next.yml index b25081333..0bc7b1a10 100644 --- a/.github/workflows/cd_next.yml +++ b/.github/workflows/cd_next.yml @@ -16,7 +16,23 @@ permissions: jobs: + release: + name: Create a New Release + runs-on: ubuntu-latest + needs: [ setup ] + steps: + - name: Make Release + id: release + uses: pagopa/github-actions-template/node-release@v1.13.1 + with: + semver: buildNumber + github_token: ${{ secrets.BOT_TOKEN_GITHUB }} + skip_ci: false + prerelease: true + deploy: + needs: + - release name: Deploy on CDN uses: ./.github/workflows/deploy_on_cdn.yml with: diff --git a/.github/workflows/ci_code_review.yml b/.github/workflows/ci_code_review.yml index 508c11489..57e0fe766 100644 --- a/.github/workflows/ci_code_review.yml +++ b/.github/workflows/ci_code_review.yml @@ -106,7 +106,7 @@ jobs: if: github.event_name == 'pull_request' || github.event_name == 'merge_group' uses: ./.github/workflows/ci_integration_test.yml with: - environment: 'staging' + environment: 'local' notify: false secrets: inherit diff --git a/.github/workflows/ci_integration_test.yml b/.github/workflows/ci_integration_test.yml index 88d01322b..f0b027ed6 100644 --- a/.github/workflows/ci_integration_test.yml +++ b/.github/workflows/ci_integration_test.yml @@ -29,7 +29,7 @@ on: type: choice description: Select the Environment options: - - staging + - local - dev - uat canary: @@ -70,7 +70,7 @@ jobs: yarn install - if [ "${{ inputs.environment }}" = "staging" ]; then + if [ "${{ inputs.environment }}" = "local" ]; then export KEY_PEM='${{ secrets.DEV_KEY_PEM }}' export FE_URL=https://icy-island-050778e03-${{ github.event.number }}.westeurope.5.azurestaticapps.net/ui fi @@ -88,11 +88,19 @@ jobs: yarn run cucumber + print_debug: + runs-on: ubuntu-latest + steps: + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + notify: needs: [ integration_test ] runs-on: ubuntu-latest name: Notify - if: ${{ always() && (inputs.notify || github.event.inputs == null) }} + if: ${{ always() && (inputs.notify == true || github.event.inputs == null) }} steps: - name: Report Status uses: ravsamhq/notify-slack-action@v2