From 6c0b81ff4e3d07eb505faf4ec7e8f6727cab753f Mon Sep 17 00:00:00 2001 From: Gautham Varma K <43441192+GauthamVarmaK@users.noreply.github.com> Date: Tue, 2 Nov 2021 19:57:16 +0530 Subject: [PATCH] :green_heart: Fix CI --- .github/release-drafter.yml | 57 +++++++++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 4 +-- .github/workflows/deploy.yaml | 5 +-- 3 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..cb404ea3 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,57 @@ +--- +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +sort-direction: ascending + +categories: + - title: "🚨 Breaking changes" + labels: + - "breaking-change" + - title: "✨ New features" + labels: + - "new-feature" + - title: "πŸ› Bug fixes" + labels: + - "bugfix" + - title: "πŸš€ Enhancements" + labels: + - "enhancement" + - "refactor" + - "performance" + - title: "🧰 Maintenance" + labels: + - "maintenance" + - "ci" + - title: "πŸ“š Documentation" + labels: + - "documentation" + - title: "⬆️ Dependency updates" + labels: + - "dependencies" + +version-resolver: + major: + labels: + - "major" + - "breaking-change" + minor: + labels: + - "minor" + - "new-feature" + patch: + labels: + - "bugfix" + - "chore" + - "ci" + - "dependencies" + - "documentation" + - "enhancement" + - "performance" + - "refactor" + default: patch + +template: | + ## What’s changed + + $CHANGES diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 97236bd0..cee71406 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -139,13 +139,11 @@ jobs: uses: docker/setup-qemu-action@v1.2.0 - name: πŸ— Set up Docker Buildx uses: docker/setup-buildx-action@v1.6.0 - - name: πŸ— Set up CodeNotary - run: bash <(curl https://getvcn.codenotary.com -L) - name: ℹ️ Compose build flags id: flags run: | echo "::set-output name=date::$(date +"%Y-%m-%dT%H:%M:%SZ")" - from=$(jq --raw-output ".build_from.${{ matrix.architecture }}" "${{ needs.information.outputs.build }}") + from=$(yq --no-colors eval ".build_from.${{ matrix.architecture }}" "${{ needs.information.outputs.build }}") echo "::set-output name=from::${from}" if [[ "${{ matrix.architecture}}" = "amd64" ]]; then diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index bf5ea7fa..c6e5b92c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -82,15 +82,12 @@ jobs: uses: docker/setup-qemu-action@v1.2.0 - name: πŸ— Set up Docker Buildx uses: docker/setup-buildx-action@v1.6.0 - - name: πŸ— Set up CodeNotary - run: bash <(curl https://getvcn.codenotary.com -L) - name: ℹ️ Compose build flags id: flags run: | echo "::set-output name=date::$(date +"%Y-%m-%dT%H:%M:%SZ")" - from=$(jq --raw-output ".build_from.${{ matrix.architecture }}" "${{ needs.information.outputs.build }}") + from=$(yq --no-colors eval ".build_from.${{ matrix.architecture }}" "${{ needs.information.outputs.build }}") echo "::set-output name=from::${from}" - if [[ "${{ matrix.architecture}}" = "amd64" ]]; then echo "::set-output name=platform::linux/amd64" elif [[ "${{ matrix.architecture }}" = "i386" ]]; then