Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#5449id #2

Open
muhammadhaffizz opened this issue Jun 5, 2024 · 0 comments
Open

#5449id #2

muhammadhaffizz opened this issue Jun 5, 2024 · 0 comments

Comments

@muhammadhaffizz
Copy link

name: 'ccc - Cloud Cost Checker'

on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
branches:
- main
inputs: {}

jobs:
should-gitignore:
name: 'Run ccc - Cloud Cost Checker'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
id-token: write
steps:
- name: 'Authenticate to Google Cloud'
# NOTE: cf. https://github.com/google-github-actions/auth
uses: 'google-github-actions/[email protected]'
with:
workload_identity_provider: 'projects/999999999999/locations/global/workloadIdentityPools/your-pool/providers/your-provider'
service_account: '[email protected]'
access_token_lifetime: '600s'
- uses: kunitsuinc/[email protected]
with:
TZ: 'Asia/Tokyo'
GOOGLE_CLOUD_PROJECT: 'your-gcp-project'
GCP_BILLING_TABLE: '${{ secrets.CCC_GCP_BILLING_TABLE }}'
GCP_BILLING_PROJECT: 'your-gcp-project'
DAYS: '5449
IMAGE_FORMAT: 'png'
MESSAGE: "'your-gcp-project Cost'"
SLACK_TOKEN: '${{ secrets.CCC_SLACK_TOKEN }}'
SLACK_CHANNEL: '#your-bot-invited-channel'
DEBUG: 'true'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant