From d91302bff6f7f2dedf44b47c89859aa7936e6f7e Mon Sep 17 00:00:00 2001 From: Sadman Hossain Date: Sat, 19 Oct 2024 19:59:08 -0400 Subject: [PATCH] Update update-blog.yml --- .github/workflows/update-blog.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-blog.yml b/.github/workflows/update-blog.yml index 09287b8..9c57b33 100644 --- a/.github/workflows/update-blog.yml +++ b/.github/workflows/update-blog.yml @@ -57,12 +57,14 @@ jobs: git add data/PEYJobPosting2024.json git commit -m "Add updated PEY job postings data" + - name: Set up authentication for pushing changes + run: | + cd blog-repo + git remote set-url origin https://x-access-token:${{ secrets.GH_BLOG_TOKEN }}@github.com/sadmanca/blog.git + - name: Push changes to the blog repo - env: - GH_BLOG_TOKEN: ${{ secrets.GH_BLOG_TOKEN }} run: | cd blog-repo - git remote set-url origin https://$GH_BLOG_TOKEN@github.com/sadmanca/blog.git git push -u origin github-actions-test - name: Send notification via curl