Skip to content

Commit e460956

Browse files
committed
Fix CI in PRs
1 parent f575f8a commit e460956

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
SIGN_STOREPASS: ${{ secrets.SIGN_STOREPASS }}
5050
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
5151
MAVEN_KEY: ${{ secrets.MAVEN_KEY }}
52+
GITHUB_USER: ${{ github.actor }}
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5254
- name: 'Test'
5355
env:
5456
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ repositories {
7373
name "Cyclops Repo"
7474
url "https://maven.pkg.github.com/CyclopsMC/packages"
7575
credentials {
76-
username = project.findProperty("gpr.user") ?: System.getenv("MAVEN_USERNAME")
77-
password = project.findProperty("gpr.key") ?: System.getenv("MAVEN_KEY")
76+
username = project.findProperty("gpr.user") ?: System.getenv("MAVEN_USERNAME") ?: System.getenv("GITHUB_USER")
77+
password = project.findProperty("gpr.key") ?: System.getenv("MAVEN_KEY") ?: System.getenv("GITHUB_TOKEN")
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)