From bcdefbaa55aa800c074a6363e0a789f485941561 Mon Sep 17 00:00:00 2001 From: Alex Birdsall Date: Tue, 20 Feb 2024 15:56:45 -0800 Subject: [PATCH] Purge references to deleted jobs, remove update-connector-builder --- .../publish-cdk-command-manually.yml | 107 ------------------ 1 file changed, 107 deletions(-) diff --git a/.github/workflows/publish-cdk-command-manually.yml b/.github/workflows/publish-cdk-command-manually.yml index ee9404418020..f779f59fecac 100644 --- a/.github/workflows/publish-cdk-command-manually.yml +++ b/.github/workflows/publish-cdk-command-manually.yml @@ -107,7 +107,6 @@ jobs: timeout-minutes: 240 needs: - start-publish-docker-image-runner-0 - - publish-cdk runs-on: runner-pool-${{ github.run_id }} steps: - name: Checkout Airbyte @@ -167,112 +166,6 @@ jobs: env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} - update-connector-builder: - needs: - - bump-version - - publish-docker-image - runs-on: ubuntu-latest - steps: - - uses: actions/setup-python@v4 - with: - python-version: "3.9" - - name: Checkout Airbyte Platform Internal - uses: actions/checkout@v3 - with: - repository: airbytehq/airbyte-platform-internal - token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }} - - name: Update CDK version - run: | - PREVIOUS_VERSION=$(cat oss/airbyte-connector-builder-resources/CDK_VERSION) - sed -i "s/${PREVIOUS_VERSION}/${{needs.bump-version.outputs.new_cdk_version}}/g" oss/airbyte-connector-builder-server/Dockerfile - sed -i "s/${PREVIOUS_VERSION}/${{needs.bump-version.outputs.new_cdk_version}}/g" airbyte-connector-builder-server-wrapped/Dockerfile - sed -i "s/airbyte-cdk==${PREVIOUS_VERSION}/airbyte-cdk==${{needs.bump-version.outputs.new_cdk_version}}/g" oss/airbyte-connector-builder-server/requirements.in - echo ${{needs.bump-version.outputs.new_cdk_version}} > oss/airbyte-connector-builder-resources/CDK_VERSION - cd oss/airbyte-connector-builder-server - pip install pip-tools - pip-compile --upgrade - - name: Create Pull Request - id: create-pull-request - uses: peter-evans/create-pull-request@v4 - with: - token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }} - commit-message: Updating CDK version following release - title: Updating CDK version following release - body: This is an automatically generated PR triggered by a CDK release - branch: automatic-cdk-release - base: master - delete-branch: true - - name: Post success to Slack channel dev-connectors-extensibility - uses: slackapi/slack-github-action@v1.23.0 - continue-on-error: true - with: - channel-id: C04J1M66D8B - payload: | - { - "text": "A new version of Python CDK has been released!", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "A new version of Python CDK has been released with : ${{ github.event.inputs.changelog-message }}\n\n" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "A PR has also been created for the <${{ steps.create-pull-request.outputs.pull-request-url }}|Connector Builder>\n" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "See details on \n" - } - } - ] - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} - - name: Post failure to Slack channel dev-connectors-extensibility - if: ${{ failure() }} - uses: slackapi/slack-github-action@v1.23.0 - continue-on-error: true - with: - channel-id: C04J1M66D8B - payload: | - { - "text": ":warning: A new version of Python CDK has been released but Connector Builder hasn't been automatically updated", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "A new version of Python CDK has been released with : ${{ github.event.inputs.changelog-message }}\n\n" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": ":warning: Could not automatically create a PR for Connector Builder>\n" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "See details on \n" - } - } - ] - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }} - - # In case of self-hosted EC2 errors, remove this block. stop-publish-docker-image-runner-0: if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs name: Stop Build EC2 Runner