-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
484d676
commit 847a33a
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ on: | |
- cron: "0 0 * * *" | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
script: | ||
runs-on: ubuntu-latest | ||
|
@@ -39,10 +39,10 @@ jobs: | |
private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: install | ||
run: | | ||
(cd mayavi; git fetch origin; git checkout master; git reset --hard origin/master; git branch -a) | ||
(cd mayavi; git fetch origin; git checkout main; git reset --hard origin/main; git branch -a) | ||
pip3 install -U pip setuptools | ||
pip3 install -r ./requirements.txt | ||
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash | ||
curl -o- https://raw.githubusercontent.com/transifex/cli/main/install.sh | bash | ||
mv tx /usr/local/bin/tx | ||
- name: update | ||
env: | ||
|
@@ -57,7 +57,7 @@ jobs: | |
git config --global user.email $GITHUB_REPOSITORY | ||
git config --global user.name $GITHUB_REPOSITORY | ||
- name: commit | ||
if: contains(github.event.head_commit.message, '[ci skip]') == false && contains(github.ref, 'master') | ||
if: contains(github.event.head_commit.message, '[ci skip]') == false && contains(github.ref, 'main') | ||
env: | ||
JOB_ID: ${{ steps.jobs.outputs.job_id }} | ||
HTML_URL: ${{ steps.jobs.outputs.html_url }} | ||
|
@@ -67,4 +67,4 @@ jobs: | |
$HTML_URL" | ||
git remote -v | ||
git remote add github [email protected]:$GITHUB_REPOSITORY.git | ||
git push github master | ||
git push github main |