CI #393
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 22 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
node-version: "16.x" | |
- name: Before script | |
run: | | |
npm i | |
sudo apt update | |
sudo apt install -y php xmlstarlet bash | |
- name: Build | |
env: | |
MEETUP_COOKIES: ${{ secrets.MEETUP_COOKIES }} | |
run: | | |
# Get data from MeetUp and render index.html | |
./build.sh | |
- name: Upload | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -f docs | |
if [[ $(git status --porcelain) ]]; then | |
git commit -m "$(date +"%F")" | |
git push -f origin main | |
fi |