Skip to content

Stock Price

Stock Price #1402

Workflow file for this run

name: Stock Price
on:
# Schedule updates (each hour)
schedule: [{ cron: "0 10 * * *" }]
# Lines below let you run workflow manually and on each commit (optional)
push: { branches: ["master", "main"] }
workflow_dispatch:
jobs:
github-metrics:
runs-on: ubuntu-latest
steps:
- name: TSLA
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.TSLA.svg
committer_token: ${{ secrets.GITHUB_TOKEN }}
token: NOT_NEEDED
plugin_stock: yes
plugin_stock_token: ${{ secrets.STOCK_TOKEN }} # RapidAPI Yahoo Finance token
plugin_stock_symbol: TSLA # Display Tesla stock price
plugin_stock_duration: 1d # Display last day of market
- name: BBCA
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.BBCA.svg
committer_token: ${{ secrets.GITHUB_TOKEN }}
token: NOT_NEEDED
plugin_stock: yes
plugin_stock_token: ${{ secrets.STOCK_TOKEN }} # RapidAPI Yahoo Finance token
plugin_stock_symbol: BBCA.JK # Display Tesla stock price
plugin_stock_duration: 1d # Display last day of market
- name: BBTN
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.BBTN.svg
committer_token: ${{ secrets.GITHUB_TOKEN }}
token: NOT_NEEDED
plugin_stock: yes
plugin_stock_token: ${{ secrets.STOCK_TOKEN }} # RapidAPI Yahoo Finance token
plugin_stock_symbol: BBTN.JK # Display Tesla stock price
plugin_stock_duration: 1d # Display last day of market
- name: BTC
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.BTC.svg
committer_token: ${{ secrets.GITHUB_TOKEN }}
token: NOT_NEEDED
plugin_stock: yes
plugin_stock_token: ${{ secrets.STOCK_TOKEN }} # RapidAPI Yahoo Finance token
plugin_stock_symbol: BTC-USD # Display Tesla stock price
plugin_stock_duration: 1d # Display last day of market