Skip to content

Commit

Permalink
Add calculate usage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
muno92 committed Nov 26, 2022
1 parent 9f325b3 commit 433abff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/calc-usage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Calculate usage

on:
# schedule:
# - cron: '5 0 1 * *'
workflow_dispatch:

jobs:
calc-usage:
runs-on: ubuntu-latest
steps:
- name: Set Start Date
run: echo "START_DATE=$(date -d "$(date +'%Y%m01') 1 month ago" +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Set End Date
run: echo "END_DATE=$(date -d "$(date +'%Y%m01') 1 days ago" +'%Y-%m-%d')" >> $GITHUB_ENV
- uses: muno92/[email protected]
with:
repo: ${{ github.repository }}
start-date: ${{ env.START_DATE }}
end-date: ${{ env.END_DATE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 433abff

Please sign in to comment.