Update zipper.yml #14
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: Zipper | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
zip: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: run zipper.sh | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
run: | | |
/bin/bash ./zipper.sh | |
git config --global user.name "Github Actions" | |
git config --global user.email "actions@github.com" | |
git add RIC.zip | |
if [ -n "$(git status --porcelain)" ]; then | |
git commit --allow-empty -m "自动更新RIC.zip" | |
git remote add ACTION https://github.com/6-BennyLi-9/FTC-Robot-Integration-Client.git | |
git push ACTION HEAD | |
git remote remove ACTION | |
fi |