Skip to content

Commit 6c41386

Browse files
committed
Fix workflow variable usage
1 parent a7eb84a commit 6c41386

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/cache.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ jobs:
3131
cache: "pip"
3232
cache-dependency-path: "${{ env.REPO_DIR }}/_visualize/scripts/requirements.txt"
3333
- name: Install dependencies
34-
run: pip install -r $REPO_DIR/_visualize/scripts/requirements.txt
34+
run: pip install -r ${{ env.REPO_DIR }}/_visualize/scripts/requirements.txt
3535
- name: Run cache script
36-
run: ./$REPO_DIR/.github/scripts/cache.sh
36+
run: ./${{ env.REPO_DIR }}/.github/scripts/cache.sh
3737
env:
3838
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
- name: Show health stats
4040
if: ${{ always() }}
4141
run: |
42-
cat $REPO_DIR/_visualize/LAST_CACHE_REQUEST.txt || true
43-
echo "Warning Count: $(grep -c 'Warning' $REPO_DIR/_visualize/LAST_CACHE_REQUEST.log)"
44-
echo "From Timeouts: $(grep -c 'but failed' $REPO_DIR/_visualize/LAST_CACHE_REQUEST.log)"
45-
echo "Limit Reached: $(grep -c 'rate limit exceeded' $REPO_DIR/_visualize/LAST_CACHE_REQUEST.log)"
42+
cat ${{ env.REPO_DIR }}/_visualize/LAST_CACHE_REQUEST.txt || true
43+
echo "Warning Count: $(grep -c 'Warning' ${{ env.REPO_DIR }}/_visualize/LAST_CACHE_REQUEST.log)"
44+
echo "From Timeouts: $(grep -c 'but failed' ${{ env.REPO_DIR }}/_visualize/LAST_CACHE_REQUEST.log)"
45+
echo "Limit Reached: $(grep -c 'rate limit exceeded' ${{ env.REPO_DIR }}/_visualize/LAST_CACHE_REQUEST.log)"
4646
- name: Save log files
4747
if: ${{ always() }}
4848
uses: actions/upload-artifact@v4

.github/workflows/update.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
cache: "pip"
3232
cache-dependency-path: "${{ env.REPO_DIR }}/_visualize/scripts/requirements.txt"
3333
- name: Install dependencies
34-
run: pip install -r $REPO_DIR/_visualize/scripts/requirements.txt
34+
run: pip install -r ${{ env.REPO_DIR }}/_visualize/scripts/requirements.txt
3535
- name: Run update script
36-
run: ./$REPO_DIR/.github/scripts/update.sh
36+
run: ./${{ env.REPO_DIR }}/.github/scripts/update.sh
3737
env:
3838
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
- name: Create GitHub App Installation Token
@@ -53,7 +53,7 @@ jobs:
5353
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
5454
- name: Commit updated data
5555
run: |
56-
pushd $REPO_DIR
56+
pushd ${{ env.REPO_DIR }}
5757
git stash
5858
git pull --ff-only
5959
git stash pop
@@ -64,10 +64,10 @@ jobs:
6464
- name: Show health stats
6565
if: ${{ always() }}
6666
run: |
67-
cat $REPO_DIR/_visualize/LAST_MASTER_UPDATE.txt || true
68-
echo "Warning Count: $(grep -c 'Warning' $REPO_DIR/_visualize/LAST_MASTER_UPDATE.log)"
69-
echo "From Timeouts: $(grep -c 'but failed' $REPO_DIR/_visualize/LAST_MASTER_UPDATE.log)"
70-
echo "Limit Reached: $(grep -c 'rate limit exceeded' $REPO_DIR/_visualize/LAST_MASTER_UPDATE.log)"
67+
cat ${{ env.REPO_DIR }}/_visualize/LAST_MASTER_UPDATE.txt || true
68+
echo "Warning Count: $(grep -c 'Warning' ${{ env.REPO_DIR }}/_visualize/LAST_MASTER_UPDATE.log)"
69+
echo "From Timeouts: $(grep -c 'but failed' ${{ env.REPO_DIR }}/_visualize/LAST_MASTER_UPDATE.log)"
70+
echo "Limit Reached: $(grep -c 'rate limit exceeded' ${{ env.REPO_DIR }}/_visualize/LAST_MASTER_UPDATE.log)"
7171
- name: Save log files
7272
if: ${{ always() }}
7373
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)