-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yaml
37 lines (37 loc) · 1.3 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: jvm Lint
description: GitHub Action to lint a JVM based repository
inputs:
checkout-repo:
required: false
description: Perform checkout as first step of action
default: "true"
github-token:
required: true
description: GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN'
artifactory-username:
required: true
description: Username to use for Artifactory access
artifactory-auth-token:
required: true
description: Authentication token to use with username for Artifactory access
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4
if: inputs.checkout-repo == 'true'
with:
fetch-depth: 0
- name: Pre-commit
uses: open-turo/action-pre-commit@v2
env:
ORG_GRADLE_PROJECT_artifactoryUsername: ${{ inputs.artifactory-username }}
ORG_GRADLE_PROJECT_artifactoryAuthToken: ${{ inputs.artifactory-auth-token }}
- uses: open-turo/actions-release/lint-release-notes@v5
if: github.event_name == 'pull_request'
with:
github-token: ${{ inputs.github-token }}
checkout-repo: true
env:
ORG_GRADLE_PROJECT_artifactoryUsername: ${{ inputs.artifactory-auth-token }}
ORG_GRADLE_PROJECT_artifactoryAuthToken: ${{ inputs.artifactory-auth-token }}