Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure user stats image shows current stats #11

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/update_stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
pip install .

# cache key syntax: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#using-contexts-to-create-cache-keys
- name: Restore cached files
id: cache-files-restore
uses: actions/cache/restore@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
with:
path: ./cache
key: ${{ runner.os }}-${{ hashFiles('~/.cache_key') }}
# - name: Restore cached files
# id: cache-files-restore
# uses: actions/cache/restore@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
# with:
# path: ./cache
# key: ${{ runner.os }}-${{ hashFiles('~/.cache_key') }}

- name: Run update script
run: |
Expand All @@ -49,16 +49,16 @@ jobs:
# caches are immutable, so create a new one (new key) each time any of the files being cached change.
# the cache key will be new if any files in the cache path have been changed by 'repo_stats.runner'.
# otherwise the cache save will 'fail' (because there's no need to update it - that's fine)
- name: Update cached files
id: cache-files-save
uses: actions/cache/save@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
with:
path: ./cache
key: ${{ runner.os }}-${{ hashFiles('./cache') }}
# - name: Update cached files
# id: cache-files-save
# uses: actions/cache/save@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
# with:
# path: ./cache
# key: ${{ runner.os }}-${{ hashFiles('./cache') }}

- name: Save cache key
run: |
echo ${{ hashFiles('./cache') }} >> ~/.cache_key
# - name: Save cache key
# run: |
# echo ${{ hashFiles('./cache') }} >> ~/.cache_key

- name: Create and push to orphan branch 'cache'
run: |
Expand Down