@@ -2,14 +2,16 @@ name: run act workflow
22
33on :
44 push :
5- branches : [ "main" ]
5+ branches : [ "main", "dev" ]
66
77jobs :
88 build :
99 runs-on : ubuntu-latest
1010
1111 steps :
12- - uses : actions/checkout@v4
12+ - name : Checkout repository
13+ uses : actions/checkout@v4
14+
1315 - name : Setup R
1416 uses : r-lib/actions/setup-r@v2
1517 with :
@@ -19,26 +21,28 @@ jobs:
1921 run : |
2022 Rscript -e 'install.packages(c("ggplot2", "plyr", "optparse", "tidyr", "GGIR"), repos="https://cloud.r-project.org")'
2123
22- - name : Set up Python 3.10
23- uses : actions/setup-python@v3
24- with :
25- python-version : " 3.10"
26- - name : Install python dependencies
27- run : |
28- python -m pip install --upgrade pip
29- python -m pip install flake8 pytest
30- if [ -f code/requirements.txt ]; then pip install -r code/requirements.txt; fi
31- - name : Run Python script
32- run : |
33- python code/main.py
34- - name : Commit and push changes to main
35- run : |
36- git config --global user.name "GitHub Actions Bot"
37- git config --global user.email "github-actions[bot]@users.noreply.github.com"
38- git checkout main
39- git add .
40- git commit -m "Automated changes from GitHub Actions"
41- git push origin main
24+ - name : Set up Python 3.10
25+ uses : actions/setup-python@v3
26+ with :
27+ python-version : " 3.10"
28+
29+ - name : Install Python dependencies
30+ run : |
31+ python -m pip install --upgrade pip
32+ python -m pip install flake8 pytest
33+ if [ -f code/requirements.txt ]; then pip install -r code/requirements.txt; fi
34+
35+ - name : Run Python script
36+ run : python code/main.py
37+
38+ - name : Commit and push changes to main
39+ run : |
40+ git config --global user.name "GitHub Actions Bot"
41+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
42+ git checkout main
43+ git add .
44+ git commit -m "Automated changes from GitHub Actions"
45+ git push origin main
4246
4347
4448
0 commit comments