Worklog Update #247
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
# Github workflow for Python script | |
name: Worklog Update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 5 * * *" | |
jobs: | |
update_worklog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: YAML to JSON | |
uses: NeddM/[email protected] | |
with: | |
input: worklog.yaml | |
output: worklog.json | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Run update_worklog python script | |
run: | | |
python update_worklog.py | |
env: | |
KRONOS_EMAIL: ${{ secrets.KRONOS_EMAIL }} | |
KRONOS_PASSWORD: ${{ secrets.KRONOS_PASSWORD }} | |
KRONOS_DOMAIN: ${{ secrets.KRONOS_DOMAIN }} | |
- name: PingMe On Pushbullet | |
uses: kha7iq/pingme-action@v1 | |
with: | |
service: pushbullet | |
env: | |
PUSHBULLET_TOKEN: ${{ secrets.PUSHBULLET_TOKEN }} | |
PUSHBULLET_DEVICE: ${{ secrets.PUSHBULLET_DEVICE }} | |
PUSHBULLET_TITLE: "Kronos Worklog Updated" | |
PUSHBULLET_MESSAGE: | | |
Event is triggered by ${{ github.event_name }} | |
Workflow Log: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |