Update auto-rebuild.yml

This commit is contained in:
gentlyxu 2021-05-29 08:21:24 +08:00 committed by GitHub
parent e97f380434
commit e051c795aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,10 +21,10 @@ jobs:
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: co dev - name: co master
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: 'dev' ref: 'master'
# Runs a set of commands using the runners shell # Runs a set of commands using the runners shell
- name: Run - name: Run
@ -35,7 +35,7 @@ jobs:
git checkout scripts git checkout scripts
/bin/bash ./scripts/build-list.sh /bin/bash ./scripts/build-list.sh
git stash -u git stash -u
git checkout dev git checkout master
git checkout stash@{0}^3 -- adblock-for-dnsmasq.conf git checkout stash@{0}^3 -- adblock-for-dnsmasq.conf
git checkout stash@{0}^3 -- anti-ad-* git checkout stash@{0}^3 -- anti-ad-*
git add * git add *
@ -45,5 +45,5 @@ jobs:
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.PERSON_TOKEN }} github_token: ${{ secrets.PERSON_TOKEN }}
branch: 'dev' branch: 'master'