Skip to content

Commit f3a4b9b

Browse files
committed
fix(ci): update NYTimes workflow config
1 parent febce32 commit f3a4b9b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/nytimes.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ permissions:
2222
jobs:
2323
update_nytimes:
2424
runs-on: ubuntu-latest
25-
environment: github-pages
25+
environment: github-pages
26+
env:
27+
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2629
steps:
2730
- name: Checkout Repository
2831
uses: actions/checkout@v4
@@ -43,8 +46,6 @@ jobs:
4346
id: nytimes_update
4447
run: python -m scripts.nytimes.nytimes
4548
continue-on-error: true
46-
env:
47-
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
4849

4950
- name: Commit NYTimes Changes
5051
if: steps.nytimes_update.outcome == 'success'
@@ -58,8 +59,6 @@ jobs:
5859
git pull --rebase
5960
git push
6061
}
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6362
6463
- name: Trigger Workflow gh-pages
6564
if: steps.nytimes_update.outcome == 'success'

0 commit comments

Comments
 (0)