Files
azerothcore-wotlk/.github/workflows/import_pending.yml
Celandriel 1ddaf75bbd Merge remote-tracking branch 'upstream/master' into test-staging
# Conflicts:
#	.github/workflows/core-build-nopch.yml
#	.github/workflows/core-build-pch.yml
#	.github/workflows/macos_build.yml
#	.github/workflows/windows_build.yml
#	src/server/game/DataStores/DBCStores.cpp
#	src/server/game/Guilds/Guild.h
#	src/server/game/Scripting/ScriptDefines/DatabaseScript.cpp
#	src/server/game/Server/WorldSession.h
2026-07-25 01:45:09 +00:00

43 lines
1.4 KiB
YAML

name: import-pending
on:
push:
branches:
- master
- test-staging # add this if you want pending SQL imported on this branch too
jobs:
import-pending:
strategy:
fail-fast: false
runs-on: ubuntu-24.04
permissions:
contents: write # 'write-all' is not a valid permission, should specify what is needed
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
ref: ${{ github.ref_name }}
- uses: denoland/setup-deno@v1
with:
deno-version: "~1.0"
- name: Import and commit pending sql
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git pull --rebase origin "${{ github.ref_name }}"
bash bin/acore-db-pendings
deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts
git add -A .
git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true
env:
BRANCH: ${{ github.ref_name }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.AC_GITHUB_TOKEN }}
branch: ${{ github.ref_name }}