Skip to content

Merge pull request #61 from UtrechtUniversity/tidyverse-update #6

Merge pull request #61 from UtrechtUniversity/tidyverse-update

Merge pull request #61 from UtrechtUniversity/tidyverse-update #6

on:
push:
branches:
- main
paths:
- 'course-materials/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Zip Course materials
run: |
rm course-materials.zip
cd course-materials
zip -r ../course-materials.zip .
- uses: actions/upload-artifact@v4
with:
name: course-materials
path: course-materials.zip
- name: Commit files
run: |
git config --local user.email "github@uu.nl"
git config --local user.name "GitHub Utrecht University"
git add .
git commit -a -m "Update course materials"
continue-on-error: true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true