fix downport #7
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: auto_downport | |
on: | |
push: | |
branches: [standard] | |
jobs: | |
auto_downport: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- run: npm run init_downport | |
- run: npm run downport | |
- run: npm run cleanup_downport | |
- name: Commit Changes | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git add src | |
git commit -m "Downport changes" | |
- name: Switch to Branch 702 | |
run: git checkout -b 702 | |
- name: Push Changes | |
uses: ad-m/github-push-action@v0.6.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: 702 | |
force: true |