Release the main branch #6
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: Merge main into release | |
on: [workflow_dispatch] | |
jobs: | |
merge-n-style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout | |
with: | |
fetch-depth: 0 | |
- name: Checkout release | |
run: | | |
/usr/bin/git checkout release | |
- name: Merge main/library into release/library | |
run: | | |
/usr/bin/git checkout main -- library/ config.json | |
- uses: JohnnyMorganz/stylua-action@v3 | |
name: Apply Stylua | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: latest | |
args: library/ | |
- name: Push changes into release branch | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add library/* | |
git commit -m 'Merge changes from main' | |
git push |