diff --git a/.github/workflows/release-canary.yml b/.github/workflows/release-canary.yml index 765898e2120..547bc24b77b 100644 --- a/.github/workflows/release-canary.yml +++ b/.github/workflows/release-canary.yml @@ -55,6 +55,7 @@ jobs: uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 with: fetch-depth: 0 + ref: ${{ needs.prepare-canary-release.outputs.currentAppVersion }} - id: setup uses: ./.github/actions/setup-composite - id: setup-jdk-17 @@ -119,7 +120,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} release-ios: - needs: run-static-checks + needs: prepare-canary-release environment: canary runs-on: macos-13-xlarge steps: @@ -130,6 +131,7 @@ jobs: uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 with: fetch-depth: 0 + ref: ${{ needs.prepare-canary-release.outputs.currentAppVersion }} - id: setup uses: ./.github/actions/setup-composite - id: setup-ruby diff --git a/.github/workflows/release-new-cycle.yml b/.github/workflows/release-new-cycle.yml index 5ad6772a4cd..87a34f5ef80 100644 --- a/.github/workflows/release-new-cycle.yml +++ b/.github/workflows/release-new-cycle.yml @@ -17,12 +17,15 @@ jobs: bump-app-version: needs: run-static-checks runs-on: ubuntu-latest + environment: prod + outputs: + currentAppVersion: ${{ steps.github-release-creation.outputs.CURRENT_APP_VERSION }} steps: - id: checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 with: fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + ssh-key: ${{ secrets.SSH_DEPLOY_KEY }} - id: setup uses: ./.github/actions/setup-composite - id: bump-version @@ -45,6 +48,7 @@ jobs: - id: github-release-creation run: | APP_VERSION=$(node -p -e "require('./package.json').version") + echo "CURRENT_APP_VERSION=$APP_VERSION" >> $GITHUB_OUTPUT gh release create $APP_VERSION --latest --generate-notes env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -57,6 +61,7 @@ jobs: uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 with: fetch-depth: 0 + ref: ${{ needs.bump-app-version.outputs.currentAppVersion }} - id: setup uses: ./.github/actions/setup-composite - id: setup-jdk-17 @@ -132,6 +137,7 @@ jobs: uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 with: fetch-depth: 0 + ref: ${{ needs.bump-app-version.outputs.currentAppVersion }} - id: setup uses: ./.github/actions/setup-composite - id: setup-ruby diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index d8e778348ae..2dbf700e078 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -10,6 +10,8 @@ jobs: needs: run-static-checks runs-on: ubuntu-latest environment: prod + outputs: + currentAppVersion: ${{ steps.github-release-creation.outputs.CURRENT_APP_VERSION }} steps: - id: checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 @@ -29,6 +31,7 @@ jobs: - id: github-release-creation run: | APP_VERSION=$(node -p -e "require('./package.json').version") + echo "CURRENT_APP_VERSION=$APP_VERSION" >> $GITHUB_OUTPUT gh release create $APP_VERSION --latest --generate-notes env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -41,6 +44,7 @@ jobs: uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 with: fetch-depth: 0 + ref: ${{ needs.bump-app-version.outputs.currentAppVersion }} - id: setup uses: ./.github/actions/setup-composite - id: setup-jdk-17 @@ -116,6 +120,7 @@ jobs: uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2 with: fetch-depth: 0 + ref: ${{ needs.bump-app-version.outputs.currentAppVersion }} - id: setup uses: ./.github/actions/setup-composite - id: setup-ruby