Skip to content

CI

CI #37238

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
watch:
types: [started]
schedule:
- cron: 0 * * * *
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Create local changes
run: |
sudo rm -rf /etc/localtime
sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo apt-get install -y dos2unix jq fish sed
fish action_fish.sh
- name: Commit files
run: |
git config --local user.email ${{ secrets.MAIL }}
git config --local user.name ${{ secrets.NAME }}
git commit -m "Add changes" -a
git checkout --orphan new_branch
git add -A
git commit -am 'Add changes'
git branch -D master
git branch -m master
git branch -M master
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force : true