diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 691a56bcdb..451d893b38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ jobs: pr-lint: name: PR title runs-on: ubuntu-latest - + steps: - name: PR title lint if: github.event_name == 'pull_request' @@ -15,49 +15,55 @@ jobs: title-regex: '^([\w-/]+): \w+' build: - runs-on: windows-latest + runs-on: ubuntu-latest name: Build steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 + - name: Make gradlew executable + run: chmod +x ./gradlew - name: Set up JDK 11 - uses: actions/setup-java@master + uses: actions/setup-java@v1 with: java-version: 11 - name: Assembling - run: gradlew assemble --console=plain + run: ./gradlew assemble --console=plain - name: Building - run: gradlew build --stacktrace -x test -x checkstyleMain --console=plain + run: ./gradlew build --stacktrace -x test -x checkstyleMain --console=plain test: - runs-on: windows-latest + runs-on: ubuntu-latest name: Test steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 + - name: Make gradlew executable + run: chmod +x ./gradlew - name: Set up JDK 11 - uses: actions/setup-java@master + uses: actions/setup-java@v1 with: java-version: 11 - name: Assembling - run: gradlew assemble --console=plain + run: ./gradlew assemble --console=plain - name: Testing - run: gradlew test --stacktrace --console=plain + run: ./gradlew test --stacktrace --console=plain checkstyle: name: Checkstyle - runs-on: windows-latest + runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 + - name: Make gradlew executable + run: chmod +x ./gradlew - name: Set up JDK 11 - uses: actions/setup-java@master + uses: actions/setup-java@v1 with: java-version: 11 - name: Assembling - run: gradlew assemble --console=plain + run: ./gradlew assemble --console=plain - name: Checking code conventions - run: gradlew checkstyleMain --console=plain + run: ./gradlew checkstyleMain --console=plain approve: name: Approve @@ -67,6 +73,6 @@ jobs: steps: - name: Approve pull request if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS' - uses: hmarr/auto-approve-action@master + uses: hmarr/auto-approve-action@v2.0.0 with: - github-token: "${{ secrets.GITHUB_TOKEN }}" + github-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 619e3921c6..b478c70501 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 - name: Make gradlew executable run: chmod +x ./gradlew - name: Update Gradle Wrapper @@ -28,17 +28,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Make gradlew executable - run: chmod +x ./gradlew - - name: Update Gradle dependencies - run: ./gradlew useLatestVersions --console=plain - - name: Create Gradle dependencies update Pull Request - uses: Owain94/create-pull-request@master - env: - GITHUB_TOKEN: ${{ secrets.OpenOSRS }} - PULL_REQUEST_BRANCH: GRADLE-DEPENDENCY-UPDATE - PULL_REQUEST_TITLE: 'project: Update gradle dependencies' - PULL_REQUEST_BODY: This is an auto-generated PR with an updated gradle dependencies versions - COMMIT_MESSAGE: 'project: Update gradle dependencies' - PULL_REQUEST_LABELS: automated pull request, gradle + - uses: actions/checkout@v1 + - name: Make gradlew executable + run: chmod +x ./gradlew + - name: Update Gradle dependencies + run: ./gradlew useLatestVersions --console=plain + - name: Create Gradle dependencies update Pull Request + uses: Owain94/create-pull-request@master + env: + GITHUB_TOKEN: ${{ secrets.OpenOSRS }} + PULL_REQUEST_BRANCH: GRADLE-DEPENDENCY-UPDATE + PULL_REQUEST_TITLE: 'project: Update gradle dependencies' + PULL_REQUEST_BODY: This is an auto-generated PR with an updated gradle dependencies versions + COMMIT_MESSAGE: 'project: Update gradle dependencies' + PULL_REQUEST_LABELS: automated pull request, gradle \ No newline at end of file diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index 62e7f738a2..591bbd73f6 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -9,9 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v1 - name: Set up JDK 11 - uses: actions/setup-java@master + uses: actions/setup-java@v1 with: java-version: 11 - name: Make gradlew executable @@ -36,4 +36,4 @@ jobs: PULL_REQUEST_TITLE: 'Client: Update NPC stats' PULL_REQUEST_BODY: This is an auto-generated PR with changes from the OSRS wiki COMMIT_MESSAGE: 'Client: Update NPC stats' - PULL_REQUEST_LABELS: automated pull request, NPC stats + PULL_REQUEST_LABELS: automated pull request, NPC stats \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index f6ec51e2e4..31269fc102 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -19,4 +19,4 @@ jobs: exempt-issue-label: 'awaiting-approval' exempt-pr-label: 'awaiting-approval' days-before-stale: 60 - days-before-close: 30 + days-before-close: 30 \ No newline at end of file