Skip to content

Commit 4ff2882

Browse files
committed
try to fix github.ref
1 parent 8d48488 commit 4ff2882

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- 'os:2.6.0'
2929
env:
3030
mainJob: ${{ matrix.es-version == 'es:8.8.1' }}
31+
githubRef: ${{ github.ref }}
3132
continue-on-error: true
3233
steps:
3334
- uses: actions/checkout@v3
@@ -125,7 +126,7 @@ jobs:
125126
spi/build/libs/sudachi-*.jar
126127
- name: 'Publish SPI jar to maven central'
127128
uses: eskatos/gradle-command-action@v2
128-
if: env.mainJob == 'true' && success() && startsWith(github.ref, 'refs/branch/develop')
129+
if: env.mainJob == 'true' && success() && startsWith(github.ref, 'refs/remotes/origin/develop')
129130
with:
130131
arguments: -PengineVersion=${{ matrix.es-version }} --info publishToSonatype closeAndReleaseSonatypeStagingRepository
131132
env:

0 commit comments

Comments
 (0)