Update Misskey #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Misskey | |
on: | |
workflow_dispatch: | |
inputs: | |
head: | |
default: develop | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
depth: 0 | |
submodules: recursive | |
- run: | | |
git branch -r --format '%(refname:short)' | while read r; | |
do git branch --track "${r#origin/}" "$r"; | |
done | |
git fetch --all | |
git pull --all | |
git checkout "$HEAD" | |
env: | |
HEAD: ${{ github.event.inputs.head }} | |
working-directory: misskey | |
- run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
git add misskey | |
git commit -m "chore: update misskey to $HEAD" | |
git push | |
env: | |
HEAD: ${{ github.event.inputs.head }} |