Skip to content

Commit

Permalink
[AUTO:BUILD] Fri Sep 27 17:52:34 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 27, 2024
0 parents commit 6ed8760
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/Cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# .github/workflows/scheduled-builds.yml
name: Generate Excange

on: #[push]
schedule:
# Runs "at minute 15 minute " (see https://crontab.guru)
- cron: '*/15 * * * *'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Jalankan Skrip
run: |
curl -Ss "https://api.comm.miui.com/cspmisc/redirect/foreignExchangesRates" > rate.json
curl -Ss "https://www.binance.com/bapi/asset/v1/public/asset-service/product/currency" > crypto-rate.json
echo `date +%s` > last_update.txt
- name: Commit
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout --orphan latest_branch
git add -A
git commit -am "[AUTO:BUILD] `date`"
- name: GitHub Push
uses: ad-m/github-push-action@master
with:
force: true
directory: "."
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Nusantaracode

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ExcangeRate
exchange rate currency and crpto table
Binary file added crypto-rate.json
Binary file not shown.
1 change: 1 addition & 0 deletions last_update.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1727459554
1 change: 1 addition & 0 deletions rate.json

Large diffs are not rendered by default.

0 comments on commit 6ed8760

Please sign in to comment.