-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (23 loc) · 930 Bytes
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Update CS Prices
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
download:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
- name: Update prices
run: npm install && node index.js '${{ secrets.USERNAME }}' '${{ secrets.PASSWORD }}'
- name: Get current date and time
id: current_datetime
run: echo "CURRENT_DATETIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Commit & push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Updated CS Prices on ${{ env.CURRENT_DATETIME }}"