Skip to content

waynewenswag/punchin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev locally

Steps

  1. Click fork 00-Click-fork
  2. Create fork repo 01-Create-fork
  3. Enable Action 02-Enable-action
  4. Setup secretes 03-1-Setup-secrets 03-2-Create-secret 03-3-Create-secret

Use as Action

Steps

  1. set your repo secret
    • ACCOUNT
    • PASSWORD
  2. Add action like below, put in .github/workflows/punch.yaml .
name: Punch in

on:
  schedule:
    - cron: '0 0 * * 1-5'
    - cron: '0 11 * * 1-5'

jobs:
  attendence:
    name: do_punch
    runs-on: ubuntu-latest
    env:
      ACCOUNT: ${{ secrets.ACCOUNT}}
      PASSWORD: ${{ secrets.PASSWORD}}
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Punch in
        if: github.event.schedule == '0 0 * * 1-5'
        uses: ninochang/punchin@v1
        with:
          mode: in
      - name: Punch out
        if: github.event.schedule == '0 11 * * 1-5'
        uses: ninochang/punchin@v1
        with:
          mode: out

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.7%
  • Dockerfile 7.3%
  • Shell 2.0%