From b64572f9e439a69c0777eff17de49e81d4b966b5 Mon Sep 17 00:00:00 2001 From: Frankie Gallina-Jones Date: Fri, 15 Jul 2022 11:10:49 -0400 Subject: [PATCH] remove compatibility table workflows since buildpack no longer needs to maintain compatibility information --- .../trigger-compatibility-update.yml | 42 ----------- .github/workflows/update-compatibility.yml | 69 ------------------- 2 files changed, 111 deletions(-) delete mode 100644 .github/workflows/trigger-compatibility-update.yml delete mode 100644 .github/workflows/update-compatibility.yml diff --git a/.github/workflows/trigger-compatibility-update.yml b/.github/workflows/trigger-compatibility-update.yml deleted file mode 100644 index f6737e00..00000000 --- a/.github/workflows/trigger-compatibility-update.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Trigger Compatibility Table Updates - -on: - pull_request: - branches: - - main - -concurrency: trigger_compatibility_table_update - -jobs: - versions: - name: Get Newly Added Versions - if: contains(github.event.pull_request.title, 'Updates buildpack.toml with new dependency versions:') - runs-on: ubuntu-latest - steps: - - - name: Parse SDK Versions - id: parse - run: | - versions="$(echo ${{ github.event.pull_request.title }} | cut -d':' -f2-)" - echo "::set-output name=versions::${versions}" - - - name: Trigger SDK Compatibility Table Updates - run: | - IFS=', ' read -r -a versions <<< "${{ steps.parse.outputs.versions }}" - for index in ${!versions[@]}; do - echo ${versions[index]} - curl -X POST \ - https://api.github.com/repos/${GITHUB_REPOSITORY}/dispatches \ - -H "Accept: application/vnd.github.everest-preview+json" \ - -H "Content-Type: application/json" \ - -H "Authorization: token ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}" \ - -d "{ \ - \"event_type\": \"compatibility-table-update\", \ - \"client_payload\": { \ - \"version\": \"${versions[index]}\", \ - \"branch\": \"${BRANCH}\" \ - } \ - }" - done - env: - BRANCH: ${{ github.event.pull_request.head.ref }} diff --git a/.github/workflows/update-compatibility.yml b/.github/workflows/update-compatibility.yml deleted file mode 100644 index 38845a83..00000000 --- a/.github/workflows/update-compatibility.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Update SDK Compatibility Table - -on: - workflow_dispatch: - inputs: - VERSION: - required: true - BRANCH: - required: true - repository_dispatch: - types: [ compatibility-table-update ] -env: - VERSION: ${{ github.event.client_payload.version }} - BRANCH: ${{ github.event.client_payload.branch }} - -concurrency: compatibility_table_update - -jobs: - update: - name: Update Table - runs-on: ubuntu-18.04 - steps: - - name: Check out code - uses: actions/checkout@v2 - with: - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - - - name: Set Env Vars - run: | - if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then - echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV - echo "BRANCH=${{ github.event.inputs.branch }}" >> $GITHUB_ENV - fi - - - name: Checkout Branch - uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main - with: - branch: ${{ env.BRANCH }} - - - name: Update the table - id: update - uses: paketo-buildpacks/dotnet-core-sdk/actions/compatibility@main - with: - buildpack_file: "/github/workspace/buildpack.toml" - sdk_version: ${{ env.VERSION }} - output_dir: "/github/workspace" - - - name: Commit - id: commit - uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main - with: - message: "Updating buildpack.toml compatibility table for SDK v${{ env.VERSION }}" - pathspec: "." - keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }} - key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }} - - - name: Push Branch - if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main - with: - branch: ${{ env.BRANCH }} - - - name: Open Pull Request - if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/open@main - with: - title: "Updating buildpack.toml SDK compatibility table" - branch: ${{ env.BRANCH }} - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}