diff --git a/.github/actions/composite/setupGitForOSBotifyApp/action.yml b/.github/actions/composite/setupGitForOSBotifyApp/action.yml index 45d85663bfa6..128dcf48e934 100644 --- a/.github/actions/composite/setupGitForOSBotifyApp/action.yml +++ b/.github/actions/composite/setupGitForOSBotifyApp/action.yml @@ -24,21 +24,6 @@ outputs: runs: using: composite steps: - - name: Check if gpg encrypted private key is present - id: key_check - shell: bash - run: | - if [[ -f .github/workflows/OSBotify-private-key.asc.gpg ]]; then - echo "key_exists=true" >> "$GITHUB_OUTPUT" - fi - - - name: Checkout - uses: actions/checkout@v4 - if: steps.key_check.outputs.key_exists != 'true' - with: - sparse-checkout: | - .github - - name: Install 1Password CLI uses: 1password/install-cli-action@v1 diff --git a/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts b/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts index 3ff0de1b3bb2..8e285389e3f7 100644 --- a/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts +++ b/.github/actions/javascript/getPullRequestDetails/getPullRequestDetails.ts @@ -54,6 +54,7 @@ GithubUtils.octokit.pulls .then(({data: PR}) => { if (!isEmptyObject(PR)) { console.log(`Found matching pull request: ${PR.html_url}`); + console.log(`Pull request details: ${JSON.stringify(PR)}}`); core.setOutput('MERGE_COMMIT_SHA', PR.merge_commit_sha); core.setOutput('HEAD_COMMIT_SHA', PR.head?.sha); core.setOutput('IS_MERGED', PR.merged); diff --git a/.github/actions/javascript/getPullRequestDetails/index.js b/.github/actions/javascript/getPullRequestDetails/index.js index fa7e7e00e137..07baf462086c 100644 --- a/.github/actions/javascript/getPullRequestDetails/index.js +++ b/.github/actions/javascript/getPullRequestDetails/index.js @@ -11502,6 +11502,7 @@ GithubUtils_1.default.octokit.pulls .then(({ data: PR }) => { if (!(0, EmptyObject_1.isEmptyObject)(PR)) { console.log(`Found matching pull request: ${PR.html_url}`); + console.log(`Pull request details: ${JSON.stringify(PR)}}`); core.setOutput('MERGE_COMMIT_SHA', PR.merge_commit_sha); core.setOutput('HEAD_COMMIT_SHA', PR.head?.sha); core.setOutput('IS_MERGED', PR.merged); diff --git a/.github/workflows/cherryPick.yml b/.github/workflows/cherryPick.yml index 425baa37eb15..b7dcf95294be 100644 --- a/.github/workflows/cherryPick.yml +++ b/.github/workflows/cherryPick.yml @@ -56,14 +56,19 @@ jobs: SEMVER_LEVEL: "PATCH" - name: Fetch history of relevant refs - run: | - git fetch origin main staging --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }} + run: git fetch origin main staging --no-tags --shallow-exclude ${{ steps.getPreviousVersion.outputs.PREVIOUS_VERSION }} - name: Get version bump commit id: getVersionBumpCommit run: | git switch main VERSION_BUMP_COMMIT="$(git log --format='%H' --author='OSBotify' --grep 'Update version to ${{ needs.createNewVersion.outputs.NEW_VERSION }}')" + if [ -z "$VERSION_BUMP_COMMIT" ]; then + echo "::error::❌ Could not find version bump commit for ${{ needs.createNewVersion.outputs.NEW_VERSION }}" + git log --oneline + else + echo "::notice::👀 Found version bump commit $VERSION_BUMP_COMMIT" + fi echo "VERSION_BUMP_SHA=$VERSION_BUMP_COMMIT" >> "$GITHUB_OUTPUT" - name: Get merge commit for pull request to CP