Skip to content

Commit f2b8089

Browse files
committed
Initial test
1 parent cefff5b commit f2b8089

File tree

1 file changed

+39
-25
lines changed

1 file changed

+39
-25
lines changed

.github/workflows/generateCourseOverview.yml

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -58,29 +58,43 @@ jobs:
5858
cd ${REPOSITORYFOLDER}
5959
liaex -i index.yml -o index --format project --project-category-blur
6060
ls
61+
62+
- name: Commit files
63+
run: |
64+
cd ${REPOSITORYFOLDER}
65+
ls
66+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
67+
git config --local user.name "github-actions[bot]"
68+
git add .
69+
git commit -m "Add new export version of courses" || echo "No changes to commit"
70+
- name: Push changes
71+
uses: ad-m/github-push-action@master
72+
with:
73+
directory: repository
74+
github_token: ${{ secrets.GITHUB_TOKEN }}
75+
branch: ${{ github.ref }}
6176

62-
commit:
63-
needs:
64-
[run_index]
65-
runs-on: ubuntu-latest
66-
steps:
67-
- name: Restore repository
68-
uses: actions/cache@v3
69-
with:
70-
path: repository
71-
key: repository-${{ github.sha }}
72-
73-
- name: Commit files
74-
run: |
75-
cd ${REPOSITORYFOLDER}
76-
ls
77-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
78-
git config --local user.name "github-actions[bot]"
79-
git add .
80-
git commit -m "Add new export version of courses" || echo "No changes to commit"
81-
- name: Push changes
82-
uses: ad-m/github-push-action@master
83-
with:
84-
directory: repository
85-
github_token: ${{ secrets.GITHUB_TOKEN }}
86-
branch: ${{ github.ref }}
77+
#commit:
78+
# needs:
79+
# [run_index]
80+
# runs-on: ubuntu-latest
81+
# steps:
82+
# - name: Restore repository
83+
# uses: actions/cache@v3
84+
# with:
85+
# path: repository
86+
# key: repository-${{ github.sha }}
87+
# - name: Commit files
88+
# run: |
89+
# cd ${REPOSITORYFOLDER}
90+
# ls
91+
# git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
92+
# git config --local user.name "github-actions[bot]"
93+
# git add .
94+
# git commit -m "Add new export version of courses" || echo "No changes to commit"
95+
# - name: Push changes
96+
# uses: ad-m/github-push-action@master
97+
# with:
98+
# directory: repository
99+
# github_token: ${{ secrets.GITHUB_TOKEN }}
100+
# branch: ${{ github.ref }}

0 commit comments

Comments
 (0)