File tree Expand file tree Collapse file tree 3 files changed +23
-5
lines changed
Expand file tree Collapse file tree 3 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1+ name : Release from Tag
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ workflow_dispatch :
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ steps :
15+ - uses : actions/checkout@v3
16+ - uses : ncipollo/release-action@v1
17+ with :
18+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Composite GitHub Action that verifies a Maven Build and analyzes the results in
55
66Usage example:
77
8- ```
8+ ``` yaml
99# Build validation
1010
1111name : Build
Original file line number Diff line number Diff line change @@ -45,19 +45,19 @@ runs:
4545
4646 steps :
4747 - name : Checkout code
48- uses : actions/checkout@v2
48+ uses : actions/checkout@v3
4949 with :
5050 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
5151
5252 - name : Setup JDK
53- uses : actions/setup-java@v2
53+ uses : actions/setup-java@v3
5454 with :
5555 distribution : ${{ inputs.java-distribution }}
5656 java-version : ${{ inputs.java-version }}
5757 cache : maven
5858
5959 - name : Cache SonarCloud packages
60- uses : actions/cache@v1
60+ uses : actions/cache@v3
6161 with :
6262 path : ~/.sonar/cache
6363 key : ${{ runner.os }}-sonar
6767 env :
6868 GITHUB_TOKEN : ${{ inputs.github-token }} # Needed to get PR information, if any
6969 SONAR_TOKEN : ${{ inputs.sonar-token }}
70- run : ${{ inputs.maven-executable }} ${{ inputs.maven-verify-args }} ${{ inputs.maven-additional-args }} ${{ inputs.maven-sonar-args }}
70+ run : ${{ inputs.maven-executable }} ${{ inputs.maven-verify-args }} ${{ inputs.maven-additional-args }} ${{ inputs.maven-sonar-args }}
7171 shell : bash
7272 if : ${{ inputs.os == inputs.sonar-run-on-os && inputs.java-version == inputs.sonar-run-on-java-version && inputs.sonar-token != '' }}
7373
You can’t perform that action at this time.
0 commit comments