Skip to content

Amuseing way of keeping track of pollution #519

Amuseing way of keeping track of pollution

Amuseing way of keeping track of pollution #519

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