Skip to content

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Milarsky <[email protected]>
  • Loading branch information
Isaac Milarsky committed Nov 1, 2023
1 parent acd0431 commit 51de92f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 41 deletions.
48 changes: 15 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
name: Update data

on:
workflow_dispatch: {}
schedule:
# Run Mondays at 2:15 am
- cron: "15 2 * * 0"

name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
update:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# update stats
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -r requirements.txt
- run: ./update.sh
env:
OAUTH_TOKEN: ${{ secrets.GH_API_TOKEN }}
GH_USERNAME: ${{ secrets.GH_USERNAME }}
- run: |
git config user.name 'GitHub Actions'
git config user.email '[email protected]'
git add -A
timestamp=$(date -u)
git commit -m "update data: ${timestamp}" || exit 0
git push
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}.
16 changes: 8 additions & 8 deletions app/site/_data/DSACMS/DSACMS_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"location": "United States of America",
"twitter_username": null,
"repo_count": 10,
"commits_count": 41,
"issues_count": 22,
"open_issues_count": 19,
"closed_issues_count": 3,
"pull_requests_count": 4,
"commits_count": 116,
"issues_count": 30,
"open_issues_count": 26,
"closed_issues_count": 4,
"pull_requests_count": 12,
"open_pull_requests_count": 1,
"merged_pull_requests_count": 3,
"merged_pull_requests_count": 11,
"closed_pull_requests_count": 0,
"forks_count": 3,
"stargazers_count": 8,
"watchers_count": 10
"stargazers_count": 9,
"watchers_count": 13
}

0 comments on commit 51de92f

Please sign in to comment.