From bdd3ca8bfbe669fa5663043b2a72c98e49dff7b2 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Thu, 13 Jan 2022 13:18:20 +0100 Subject: [PATCH 1/4] code formatting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 422cafc..b48d18a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Composite GitHub Action that verifies a Maven Build and analyzes the results in Usage example: -``` +```yaml # Build validation name: Build From a6830b25bfbde95ec618f69fe6be7baa4c3ae767 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Thu, 13 Jan 2022 13:55:41 +0100 Subject: [PATCH 2/4] eliminate whitespace --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ab1055a..3ab079a 100644 --- a/action.yml +++ b/action.yml @@ -67,7 +67,7 @@ runs: env: GITHUB_TOKEN: ${{ inputs.github-token }} # Needed to get PR information, if any SONAR_TOKEN: ${{ inputs.sonar-token }} - run: ${{ inputs.maven-executable }} ${{ inputs.maven-verify-args }} ${{ inputs.maven-additional-args }} ${{ inputs.maven-sonar-args }} + run: ${{ inputs.maven-executable }} ${{ inputs.maven-verify-args }} ${{ inputs.maven-additional-args }} ${{ inputs.maven-sonar-args }} shell: bash if: ${{ inputs.os == inputs.sonar-run-on-os && inputs.java-version == inputs.sonar-run-on-java-version && inputs.sonar-token != '' }} From f02b41642d0d20c8fddb6013c27760c5552fa239 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Mon, 5 Dec 2022 18:04:07 +0100 Subject: [PATCH 3/4] update to checkout@v3, setup-java@v3, cache@v3 --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 3ab079a..b00e5b3 100644 --- a/action.yml +++ b/action.yml @@ -45,19 +45,19 @@ runs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Setup JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: ${{ inputs.java-distribution }} java-version: ${{ inputs.java-version }} cache: maven - name: Cache SonarCloud packages - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar From 702e7aa6578e2eea53c1d281994ebd2992ee94bd Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Mon, 5 Dec 2022 19:42:38 +0100 Subject: [PATCH 4/4] release from tag --- .github/workflows/release-from-tag.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release-from-tag.yml diff --git a/.github/workflows/release-from-tag.yml b/.github/workflows/release-from-tag.yml new file mode 100644 index 0000000..ccfe8de --- /dev/null +++ b/.github/workflows/release-from-tag.yml @@ -0,0 +1,18 @@ +name: Release from Tag + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }}