Skip to content

Commit

Permalink
Limit builds to the gwtproject repository
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jul 24, 2022
1 parent 6c8bf1d commit 4cdd1ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/full-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Set up sonatype credentials
# Using the same java version as above, set up a settings.xml file
uses: actions/setup-java@v3
if: github.event_name == 'schedule'
if: github.event_name == 'schedule' && github.repository_owner == 'gwtproject'
with:
java-version: '8'
distribution: 'temurin'
Expand All @@ -90,7 +90,7 @@ jobs:
server-password: SONATYPE_PASSWORD

- name: Nightly builds should be deployed as snapshots to sonatype
if: github.event_name == 'schedule'
if: github.event_name == 'schedule' && github.repository_owner == 'gwtproject'
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down

0 comments on commit 4cdd1ba

Please sign in to comment.