From d67f308e4a2d7f8cd107919d57d05bc7e5d79277 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 29 Nov 2021 12:44:57 -0800 Subject: [PATCH 1/6] Create cd.yaml --- workflows/cd.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 workflows/cd.yaml diff --git a/workflows/cd.yaml b/workflows/cd.yaml new file mode 100644 index 0000000..baf58be --- /dev/null +++ b/workflows/cd.yaml @@ -0,0 +1,59 @@ +# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins + +name: cd +on: + workflow_dispatch: + check_run: + types: + - completed + +jobs: + validate: + runs-on: ubuntu-latest + outputs: + should_release: ${{ steps.verify-ci-status.outputs.result == 'success' && steps.interesting-categories.outputs.interesting == 'true' }} + steps: + - name: Verify CI status + uses: jenkins-infra/verify-ci-status-action@v1.2.0 + id: verify-ci-status + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + output_result: true + + - name: Release Drafter + uses: release-drafter/release-drafter@v5 + if: steps.verify-ci-status.outputs.result == 'success' + with: + name: next + tag: next + version: next + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check interesting categories + uses: jenkins-infra/interesting-category-action@v1.0.0 + id: interesting-categories + if: steps.verify-ci-status.outputs.result == 'success' + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + release: + runs-on: ubuntu-latest + needs: [validate] + if: needs.validate.outputs.should_release == 'true' + steps: + - name: Check out + uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: 8 + - name: Release + uses: jenkins-infra/jenkins-maven-cd-action@v1.2.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} From e14d026a1acc11542b8c593fa49ab31ec797c431 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 29 Nov 2021 12:53:35 -0800 Subject: [PATCH 2/6] Rename workflows/cd.yaml to .github/workflows/cd.yaml. --- workflows/cd.yaml => .github/workflows/cd.yaml. | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename workflows/cd.yaml => .github/workflows/cd.yaml. (100%) diff --git a/workflows/cd.yaml b/.github/workflows/cd.yaml. similarity index 100% rename from workflows/cd.yaml rename to .github/workflows/cd.yaml. From bcc7e0a4e8b2050525ed53fbd30731f5ef414a3a Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 29 Nov 2021 12:53:57 -0800 Subject: [PATCH 3/6] Update release-drafter.yml --- .github/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 840e09e..78b2076 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,3 @@ # https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc _extends: .github -tag-template: github-api-$NEXT_MINOR_VERSION + From a52d3e03f97b3b80d746da06a491b3f34aa6b751 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 29 Nov 2021 12:55:12 -0800 Subject: [PATCH 4/6] Update dependabot.yml --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 88dd156..446ea47 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,7 @@ updates: schedule: interval: weekly open-pull-requests-limit: 10 +- package-ecosystem: github-actions + directory: / + schedule: + interval: daily From 05bf9ddd72748fe5e043806bb189e0363debec2e Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 29 Nov 2021 12:58:52 -0800 Subject: [PATCH 5/6] Update maven.config --- .mvn/maven.config | 1 + 1 file changed, 1 insertion(+) diff --git a/.mvn/maven.config b/.mvn/maven.config index 2a0299c..f7daf60 100644 --- a/.mvn/maven.config +++ b/.mvn/maven.config @@ -1,2 +1,3 @@ -Pconsume-incrementals -Pmight-produce-incrementals +-Dchangelist.format=%d.v%s From ea510266097764d675d10a3cabf41024818d2a9c Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 29 Nov 2021 13:06:49 -0800 Subject: [PATCH 6/6] Update pom.xml --- pom.xml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 3c279cb..6950c3e 100644 --- a/pom.xml +++ b/pom.xml @@ -16,15 +16,14 @@ github-api - ${revision}${changelist} + ${revision}-${changelist} hpi GitHub API Plugin https://github.com/jenkinsci/github-api-plugin - 1.134 - 1.301 - -SNAPSHOT + 1.301 + 999999-SNAPSHOT 2.222.4 8 false @@ -49,7 +48,7 @@ org.kohsuke github-api - ${github-api.version} + 1.301