11name : Continuous Integration
2- on : [push, pull_request]
2+ on : [push, pull_request, workflow_dispatch ]
33jobs :
44 check_duplicate_workflows :
55 name : Check for duplicate workflows
7777 # https://stackoverflow.com/questions/57921325/gradle-signarchives-unable-to-read-secret-key
7878 ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SONATYPE_SIGNING_KEY_PASSWORD }}
7979 ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SONATYPE_SIGNING_PRIVATE_KEY }}
80+ GH_PERSONAL_ACCESS_TOKEN : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
8081 steps :
8182 - uses : actions/checkout@v2
83+ with :
84+ persist-credentials : false # without this, all access tokens set later on will be ignored
8285 - name : Set up JDK
8386 uses : actions/setup-java@v1
8487 with :
@@ -113,7 +116,7 @@ jobs:
113116 exit 1
114117 fi
115118 - name : Make github snapshot release
116- uses : " marvinpinto/action-automatic-releases@latest"
119+ uses : marvinpinto/action-automatic-releases@latest
117120 if : ${{ env.IS_SNAPSHOT_VERSION == 'true' }}
118121 with :
119122 repo_token : ${{ secrets.GITHUB_TOKEN }}
@@ -125,7 +128,7 @@ jobs:
125128 core/build/libs/*.*
126129 ksp/build/libs/*.*
127130 - name : Make github release
128- uses : " marvinpinto/action-automatic-releases@latest"
131+ uses : marvinpinto/action-automatic-releases@latest
129132 if : ${{ env.IS_SNAPSHOT_VERSION == 'false' }}
130133 with :
131134 repo_token : ${{ secrets.GITHUB_TOKEN }}
@@ -143,4 +146,4 @@ jobs:
143146 ./gradlew incrementPatchVersion setSnapshotVersionSuffix --info
144147 git add gradle.properties
145148 git commit -m "Setting next snapshot version [skip ci]"
146- git push
149+ git push https://x-access-token:${GH_PERSONAL_ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git --follow-tags
0 commit comments