forked from pajlads/DinkPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1013 Bytes
/
update-resources.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Update Resources
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
jobs:
update-resources:
if: ${{ github.repository_owner == 'pajlads' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Execute Resource Generator
run: ./gradlew generateResources
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: "chore: update rarity data from ${{ steps.date.outputs.date }} wiki"
commit-message: "chore: update rarity data from ${{ steps.date.outputs.date }} wiki"
branch: automated/chore/update-resources
reviewers: iProdigy