This action will check a calendar to see if any employees are out of office today.
name: Payfit Out of Office Check
on:
schedule:
- cron: "0 6 * * 1-5" # Run every weekday at 6am
jobs:
check-team-a:
runs-on: ubuntu-latest
steps:
- name: Check who's out of office in team A
id: check-ooo-team-a
uses: arnaudvalle/payfit-out-of-office-action@v1
with:
calendar_url: https://url.to.your/calendar.ics
names: Ciri OF CINTRA,Yennefer OF VENGERBERG
- name: Print output for team A
id: output-team-a
run: echo "${{ steps.check-ooo-team-a.outputs.names }}"
⚠️ Note: I strongly recommend that you use Github secrets to store yourcalendar_url
andnames
inputs rather than hard coding them in your workflow since these can hold sensitive information.
Required URL to the ics file containing all leave events.
Required List of full names (Firstname LASTNAME
) to check, separated by a comma.
List of full names that are out of office today (out of those passed in inputs.names
).
The scripts and documentation in this project are released under the MIT License