Skip to content

Commit

Permalink
Added fetching holidays data from google calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Aug 9, 2020
1 parent 8adc393 commit 2f4299a
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/fetch-holidays.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "Fetch Holidays"

on:
workflow_dispatch:
schedule:
- cron: '* 8 * * *'

jobs:
fetch-holidays:
name: "Fetch Holidays"

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "7.4"
operating-system:
- "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1

- name: "Cache dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Fetch Holidays"
run: "bin/countriesdb.php"

- name: "Git status"
run: "git status"
1 change: 0 additions & 1 deletion src/Aeon/Calendar/Gregorian/Holidays/data/regional/AD.json

This file was deleted.

0 comments on commit 2f4299a

Please sign in to comment.