-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2450 from pavan-kumar-s/gh-pages
Updated the webpage
- Loading branch information
Showing
2,413 changed files
with
62,933 additions
and
4,142,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Extract HTML Info | ||
|
||
on: | ||
push: | ||
branches: gh-pages | ||
paths: | ||
- '**.html' | ||
|
||
jobs: | ||
extract-info: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
ref: gh-pages | ||
|
||
- name: Check Commit Message | ||
id: check_msg | ||
run: | | ||
commit_msg=$(git log --format=%B -n 1) | ||
if [[ "$commit_msg" == "Sync files from source repo" ]]; then | ||
echo "run_job=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "run_job=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
if: steps.check_msg.outputs.run_job == 'true' | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Dependencies | ||
if: steps.check_msg.outputs.run_job == 'true' | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install beautifulsoup4 | ||
- name: Get Changed HTML Files and update the index.html file of tutorial | ||
id: getfile | ||
if: steps.check_msg.outputs.run_job == 'true' | ||
run: | | ||
changed_files=$(git diff --name-only HEAD~1 HEAD | grep '\.html' | tr '\n' ' ') | ||
for file in $changed_files; do | ||
echo "Processing: $file" | ||
python ./stable/extract_info.py $file | ||
done | ||
- name: Commit and Push New File | ||
if: steps.check_msg.outputs.run_job == 'true' | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "github-actions[bot]@users.noreply.github.com" | ||
git add . | ||
git commit -m "Update Tutorial (Automatic Workflow)" || echo "No changes to commit" | ||
git push |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.