Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Update and improve actions #130

Open
wants to merge 2 commits into
base: java
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# For more information, read https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates

version: 2
updates:
# Enable version updates for Maven
# Since the bot relies on it, check daily for updates
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"

# Enable version updates for Actions
# Since Actions is secondary, only check for updates weekly
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
21 changes: 8 additions & 13 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
name: Java CI

on: [push]

on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"

# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
strategy:
matrix:
java: [16]
fail-fast: true

steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'

distribution: 'temurin'
- name: Build with Maven
run: mvn clean package

- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v3
if: ${{ github.event_name != 'pull_request' }}
with:
name: RC24-Bot
path: target/RC24-Bot.jar
25 changes: 0 additions & 25 deletions .github/workflows/pr.yml

This file was deleted.