Skip to content

Commit d167420

Browse files
authored
Update main.yml to enable commits.
1 parent 66ba179 commit d167420

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
if: "!contains(github.event.head_commit.message, 'ci skip')"
8585
env:
8686
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
88+
GITHUB_REF: ${{ secrets.GITHUB_REF }}
8789
steps:
8890
- uses: actions/checkout@v2
8991
- name: Set up JDK 11
@@ -92,5 +94,9 @@ jobs:
9294
java-version: 11
9395
- name: Grant execute permission for gradlew
9496
run: chmod +x gradlew
97+
- name: Enable commits in current repository
98+
run: |
99+
git remote add github "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
100+
git pull github ${GITHUB_REF} --ff-only
95101
- name: Release
96102
run: ./gradlew release -Prelease.useAutomaticVersion=true

0 commit comments

Comments
 (0)