Skip to content

Update gamevals

Update gamevals #126

name: Update gamevals
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-gamevals:
if: ${{ github.repository_owner == 'pajlads' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Install dependencies
run: uv sync --frozen
- name: Check out RuneLite master
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: runelite/runelite
ref: master
path: .ci-runelite
persist-credentials: false
- name: Update gamevals
env:
RUNELITE_DIR: "${{ github.workspace }}/.ci-runelite"
run: |
uv run update-gamevals.py
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
commit-message: "chore: update gamevals (${{ steps.date.outputs.date }})"
title: "chore: update gamevals (${{ steps.date.outputs.date }})"
branch: automated/chore/update-gamevals
reviewers: pajlada