Skip to content

Commit

Permalink
Create action.yml
Browse files Browse the repository at this point in the history
Signed-off-by: BOOM TOKEN <marinachris112@outlook.com>
  • Loading branch information
Boomtokn authored Mar 2, 2025
1 parent cdc647e commit 31bccb2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Twinkle Token Automation

on:
push:
branches:
- main
workflow_dispatch: # Allows manual trigger
schedule:
- cron: "0 0 * * *" # Runs daily at midnight UTC

jobs:
run-script:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run Twinkle transaction script
env:
PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
INFURA_API: ${{ secrets.INFURA_API_URL }}
run: node scripts/transaction.js

0 comments on commit 31bccb2

Please sign in to comment.