Skip to content

Commit

Permalink
okay upto date
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant Tripathi authored and Prashant Tripathi committed Aug 23, 2024
1 parent 8747a4a commit c273012
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,70 @@ name: Update Data

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
- cron: "0 0 1 * *"
workflow_dispatch: # Allows manually triggering the workflow

jobs:
update:
runs-on: ubuntu-latest
env:
RELEASE_DATE: "2024-08-11"

steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4

# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: "3.x"

# Step 3: Install local package and dependencies
- name: Install dependencies
run: |
pip install -e .
pip install -r requirements.txt
# Step 4: Run all Jupyter notebooks in the ./notebook/ folder
- name: Run Jupyter notebooks
run: python ./NOTEBOOKS/runner.py

# Step 5: Run Pre commit
- name: Run pre-commit hooks
run: pre-commit run --all-files

# Step 6: Dynamically set RELEASE_DATE environment variable
- name: Set release date
run: |
echo "RELEASE_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
# # Step 6: Commit changes to a new branch
# - name: Commit changes
# run: |
# git checkout -b data-update
# git add .
# git commit -m "Data update for ${{ env.RELEASE_DATE }}"
# # git push -f

# Step 7: Push changes and create a PR
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Data update as on $(date +'%Y-%m-%d')"
commit-message: "Data update as on ${{ env.RELEASE_DATE }}"
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: false
base: main
branch: data-update
delete-branch: true
title: "DATA UPDATE $(date +'%Y-%m-%d')"
title: "[PanditBot] Updating Repos Data $(date +%Y-%m-%d)"
body: |
This PR contains the data updates.
- "Updated with *${{ env.RELEASE_DATE }}*"
labels: |
report
automated pr
Expand All @@ -52,6 +76,7 @@ jobs:
qa-team
draft: false

# Final Step : OUTPUT
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
Expand Down
19 changes: 1 addition & 18 deletions FRONTEND/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
integrity="sha512-3JRrEUwaCkFUBLK1N8HehwQgu8e23jTH4np5NHOmQOobuC4ROQxFwFgBLTnhcnQRMs84muMh0PnnwXlPq5MGjg=="
crossorigin="anonymous" />

<link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css" />


<link rel="stylesheet" href="src/css/adminlte.min.css" />

Expand All @@ -41,9 +41,6 @@
</head>

<body>
<div class="preloader flex-column justify-content-center align-items-center">
<img src="src/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60" />
</div>

<div class="container">
<div class="content-header">
Expand Down Expand Up @@ -172,20 +169,6 @@ <h3 class="card-title">Current Holdings</h3>


<script src="script.js"></script>
<script>
setTimeout(() => {
const preloader = document.querySelector(".preloader");

if (preloader) {
preloader.style.height = "0";

setTimeout(() => {
Array.from(preloader.children).forEach((child) => {
child.style.display = "none";
});
}, 200);
}
}, 400);</script>
</body>

</html>

0 comments on commit c273012

Please sign in to comment.