Skip to content

Commit

Permalink
Use new github actions output syntax (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa authored Mar 21, 2024
1 parent b4e125b commit 7b4cbb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
uses: gradle/wrapper-validation-action@v1
- name: Setup environment
id: setup
run: ./gradlew configureGithubActions
run: |
if grep -qi "snapshot" version.txt; then is_snapshot=true; else is_snapshot=false; fi
echo "is_snapshot=$is_snapshot" >> "$GITHUB_OUTPUT"
- name: Build project
run: |
./gradlew assemble publishToMavenLocal -S
Expand Down
6 changes: 0 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ buildScan {
publishAlways()
}

tasks.register("configureGithubActions") {
doLast {
println("::set-output name=is_snapshot::$isSnapshotBuild")
}
}

nexusPublishing {
repositories {
sonatype {
Expand Down

0 comments on commit 7b4cbb9

Please sign in to comment.