abookyun/einvoice

View on GitHub
.github/workflows/cron.yml

Summary

Maintainability
Test Coverage
name: Daily update
on:
  schedule:
    - cron: 0 0 * * *
jobs:
  build:
    runs-on: ubuntu-22.04
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-ruby@v1
    - name: bundle and run rake update
      run: |
        bundle install --jobs 4 --retry 3
        bundle exec rake update_donation_unit
    - uses: mikeal/publish-to-github-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        BRANCH_NAME: 'main'