FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sentry-java/.github/workflows/format-code.yml at main · getsentry/sentry-java · GitHub
getsentry
/
sentry-java
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
478
Star
1.4k
Code
Issues
273
Pull requests
70
Discussions
Actions
Projects
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sentry-java
/
.github
/
workflows
/
format-code.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
33 lines (28 loc) · 1.09 KB
Breadcrumbs
sentry-java
/
.github
/
workflows
/
format-code.yml
Copy path
File metadata and controls
33 lines (28 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
format code
on
:
pull_request
:
jobs
:
format-code
:
name
:
Format Code
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
submodules
:
'
recursive
'
-
name
:
set up JDK 17
uses
:
actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6
#
v6.0.1
with
:
distribution
:
'
temurin
'
java-version
:
'
17
'
-
name
:
Setup Gradle
uses
:
gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb
#
v6.3.0
with
:
cache-encryption-key
:
${{ secrets.GRADLE_ENCRYPTION_KEY }}
-
name
:
Format with spotlessApply
run
:
./gradlew spotlessApply
#
actions/checkout fetches only a single commit in a detached HEAD state. Therefore
#
we need to pass the current branch, otherwise we can't commit the changes.
#
GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
-
name
:
Commit Formatted Code
run
:
./scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
Back
|
FazBrowse Home
|
New Git URL