Amuseing way of keeping track of pollution #433
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
name: Amuseing way of keeping track of pollution | |
on: | |
schedule: | |
- cron: "0 12 * * *" | |
jobs: | |
count_pollution_cigarette: | |
runs-on: ubuntu-latest | |
name: A job to count pollution cigarette | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: run npm | |
run: npm i | |
- name: Count pollution cigarette | |
uses: "./" # Uses an action in the root directory | |
env: # Or as an environment variable | |
API_TOKEN: ${{ secrets.API_TOKEN }} | |
id: cigaretteId | |
- name: echo the pm25 in delhi | |
run: echo "The pm25 at delhi right now is ${{steps.cigaretteId.outputs.noOfcigarette}}" | |
- name: Commit files | |
run: | | |
git config user.name shubham-sharma | |
git config user.email [email protected] | |
git add . | |
git commit -m "generated" | |
git push |