Skip to content

fix merge

fix merge #28

name: compile mikupad
on:
push:
branches:
- lmg-anon/main
- use
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Add upstream
run: |
git remote add upstream https://github.com/lmg-anon/mikupad.git
git fetch upstream
- name: Merge Upstream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout use
git merge upstream/main --allow-unrelated-histories
- name: run compile.sh
run: chmod +x compile.sh; ./compile.sh
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "mikudayo~[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -f mikupad_compiled.html
git commit -m "Update mikupad_compiled.html" || echo "No changes to commit"
git push origin use || echo "Nothing to push"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mikupad_compiled
path: mikupad_compiled.html