From 2a4ce2830faa1eb58e9dedca0983ea8ab6ba9ab4 Mon Sep 17 00:00:00 2001 From: ER Date: Wed, 8 Mar 2023 17:50:41 +0200 Subject: [PATCH 1/2] chore: clean up workflows --- .github/workflows/conventional-commits.yml | 14 ---- .github/workflows/pr-publish.yml | 82 ---------------------- .github/workflows/release-please.yml | 13 ---- 3 files changed, 109 deletions(-) delete mode 100644 .github/workflows/conventional-commits.yml delete mode 100644 .github/workflows/pr-publish.yml delete mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml deleted file mode 100644 index e1a4b06..0000000 --- a/.github/workflows/conventional-commits.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Conventional Commits - -on: - pull_request: - branches: main - -jobs: - build: - name: Conventional Commits - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - uses: webiny/action-conventional-commits@v1.1.0 diff --git a/.github/workflows/pr-publish.yml b/.github/workflows/pr-publish.yml deleted file mode 100644 index c233efa..0000000 --- a/.github/workflows/pr-publish.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Publish PR builds - -on: - workflow_run: - workflows: ["build-ublue"] - types: - - completed - -env: - IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} - - -jobs: - upload: - runs-on: ubuntu-latest - if: > - github.event.workflow_run.event == 'pull_request' && - github.event.workflow_run.conclusion == 'success' - steps: - - name: 'Download artifact' - uses: actions/github-script@v3.1.0 - with: - script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{github.event.workflow_run.id }}, - }); - var matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "output" - })[0]; - var download = await github.actions.downloadArtifact({ - owner: context.repo.owner, - repo: context.repo.repo, - artifact_id: matchArtifact.id, - archive_format: 'zip', - }); - var fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/output.zip', Buffer.from(download.data)); - - run: unzip output.zip - - - name: Load Container Image - id: load_image - run: | - ls -lah - cat image - cat tags - podman load -i image.tar - image_name="localhost/$(head -n1 image):$(head -n1 tags)" - for t in $(cat tags); do - podman tag $image_name $(head -n1 image):$t - done - echo image="$(cat image)" >> $GITHUB_OUTPUT - delimiter="$(openssl rand -hex 8)" - { - echo "tags<<${delimiter}" - cat tags - echo "${delimiter}" - } >> $GITHUB_OUTPUT - - - name: Lowercase Registry - id: registry_case - uses: ASzc/change-string-case-action@v5 - with: - string: ${{ env.IMAGE_REGISTRY }} - - - name: Push To GHCR - uses: redhat-actions/push-to-registry@v2 - id: push - if: github.event_name != 'pull_request' - env: - REGISTRY_USER: ${{ github.actor }} - REGISTRY_PASSWORD: ${{ github.token }} - with: - image: ${{ steps.load_image.outputs.image }} - tags: ${{ steps.load_image.outputs.tags }} - registry: ${{ steps.registry_case.outputs.lowercase }} - username: ${{ env.REGISTRY_USER }} - password: ${{ env.REGISTRY_PASSWORD }} - extra-args: | - --disable-content-trust - diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 04689ac..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,13 +0,0 @@ -on: - push: - branches: - - main -name: release-please -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: google-github-actions/release-please-action@v3 - with: - release-type: node - package-name: release-please-action From 93acf3d6ca27b9a80380ab7fb75228685cef1958 Mon Sep 17 00:00:00 2001 From: ER Date: Mon, 13 Mar 2023 21:03:23 +0200 Subject: [PATCH 2/2] chore(ci): move to semantic-prs bot --- .github/semantic.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/semantic.yml diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 0000000..b5161df --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1,2 @@ +enabled: true +titleOnly: true