From 00f890c8ab5c3df5d30617e2ac2e265a70102307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B5nis=20Ojandu?= <86777631+tonisojandu-sympower@users.noreply.github.com> Date: Tue, 24 Oct 2023 15:15:06 +0300 Subject: [PATCH] TECH-1140 Move Composite Actions into a separate (#50) This is to avoid self-reference release before the version commit exists and is tagged. Self-reference would cause a Renovate loop in Sympower Actions. Relative references are not supported yet: https://github.com/actions/runner/issues/1348 https://github.com/actions/runner/pull/1684 This PR has been on the shelf since February. [Comment](https://github.com/actions/runner/pull/1684#issuecomment-1690416703) from @nyarly from August suggests that this feature could compromise the feature set that is reserved for Enterprise users, so there is no confidence that it will be merged. Tested the changes here: https://github.com/sympower/msa-observability/actions/runs/6626012294 https://github.com/sympower/msa-observability/actions/runs/6626046945 --- .github/workflows/release-for-testing.yml | 10 +++++----- .github/workflows/release-new-version.yml | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-for-testing.yml b/.github/workflows/release-for-testing.yml index abc7a5b..092c4bd 100644 --- a/.github/workflows/release-for-testing.yml +++ b/.github/workflows/release-for-testing.yml @@ -20,22 +20,22 @@ jobs: steps: - id: setup-build-environment name: "Setup build environment" - uses: sympower/sympower-actions/.github/actions/setup-build-environment@main + uses: sympower/sympower-composite-actions/setup-build-environment@v2023.10.24.10.59-6014a9a with: secrets: ${{ env.secrets }} - id: format-version name: "Format version" - uses: sympower/sympower-actions/.github/actions/format-version@main + uses: sympower/sympower-composite-actions/format-version@v2023.10.24.10.59-6014a9a with: style-as-release: ${{ env.IS_DEFAULT_BRANCH }} - id: build-and-upload-docker-image name: "Build and upload Docker Image" - uses: sympower/sympower-actions/.github/actions/build-and-upload-docker-image@main + uses: sympower/sympower-composite-actions/build-and-upload-docker-image@v2023.10.24.10.59-6014a9a with: version: ${{ steps.format-version.outputs.version }} - id: upload-schema name: "Upload schema" - uses: sympower/sympower-actions/.github/actions/upload-schema@main + uses: sympower/sympower-composite-actions/upload-schema@v2023.10.24.10.59-6014a9a with: secrets: ${{ env.secrets }} version: ${{ steps.format-version.outputs.version }} @@ -43,4 +43,4 @@ jobs: - id: upload-build-artifacts name: "Upload build artifacts" if: always() - uses: sympower/sympower-actions/.github/actions/upload-build-artifacts@main \ No newline at end of file + uses: sympower/sympower-composite-actions/upload-build-artifacts@v2023.10.24.10.59-6014a9a \ No newline at end of file diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml index 74393c8..20ec42e 100644 --- a/.github/workflows/release-new-version.yml +++ b/.github/workflows/release-new-version.yml @@ -24,26 +24,26 @@ jobs: steps: - id: setup-build-environment name: "Setup build environment" - uses: sympower/sympower-actions/.github/actions/setup-build-environment@main + uses: sympower/sympower-composite-actions/setup-build-environment@v2023.10.24.10.59-6014a9a with: secrets: ${{ env.secrets }} - id: format-version name: "Format version" - uses: sympower/sympower-actions/.github/actions/format-version@main + uses: sympower/sympower-composite-actions/format-version@v2023.10.24.10.59-6014a9a with: style-as-release: ${{ env.IS_DEFAULT_BRANCH }} - id: run-tests name: "Run tests" - uses: sympower/sympower-actions/.github/actions/run-tests@main + uses: sympower/sympower-composite-actions/run-tests@v2023.10.24.10.59-6014a9a - id: code-analysis name: "Code analysis" - uses: sympower/sympower-actions/.github/actions/code-analysis@main + uses: sympower/sympower-composite-actions/code-analysis@v2023.10.24.10.59-6014a9a with: secrets: ${{ env.secrets }} - id: build-and-upload-docker-image name: "Build and upload Docker Image" if: env.IS_DEFAULT_BRANCH == 'true' - uses: sympower/sympower-actions/.github/actions/build-and-upload-docker-image@main + uses: sympower/sympower-composite-actions/build-and-upload-docker-image@v2023.10.24.10.59-6014a9a with: version: ${{ steps.format-version.outputs.version }} - name: Update Service Version Badge @@ -59,7 +59,7 @@ jobs: - id: upload-schema name: "Upload schema" if: env.IS_DEFAULT_BRANCH == 'true' - uses: sympower/sympower-actions/.github/actions/upload-schema@main + uses: sympower/sympower-composite-actions/upload-schema@v2023.10.24.10.59-6014a9a with: version: ${{ steps.format-version.outputs.version }} secrets: ${{ env.secrets }} @@ -67,13 +67,13 @@ jobs: - id: upload-pacts name: "Upload pacts" if: env.IS_DEFAULT_BRANCH == 'true' - uses: sympower/sympower-actions/.github/actions/upload-pacts@main + uses: sympower/sympower-composite-actions/upload-pacts@v2023.10.24.10.59-6014a9a with: version: ${{ steps.format-version.outputs.version }} - id: deploy-staging name: "Deploy staging" if: env.IS_DEFAULT_BRANCH == 'true' - uses: sympower/sympower-actions/.github/actions/deploy-staging@main + uses: sympower/sympower-composite-actions/deploy-staging@v2023.10.24.10.59-6014a9a with: secrets: ${{ env.secrets }} version: ${{ steps.format-version.outputs.version }} @@ -81,4 +81,4 @@ jobs: - id: upload-build-artifacts name: "Upload build artifacts" if: always() - uses: sympower/sympower-actions/.github/actions/upload-build-artifacts@main + uses: sympower/sympower-composite-actions/upload-build-artifacts@v2023.10.24.10.59-6014a9a