Skip to content

184 test (#230)

184 test (#230) #20

name: Update post dates
on:
push:
branches:
- 'cicd_testing2'
jobs:
Update-post-dates:
runs-on: ubuntu-latest
container:
image: "rocker/tidyverse:4.2.1"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: cicd_testing2 # replace with the branch you want to checkout
- name: Run update_post_dates
run: Rscript R/update_post_dates.R # running the R script with Rscript
- name: Configure Git safe directory
run: git config --global --add safe.directory /__w/blog/blog
- name: Commit results
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Run R script and commit results"
git push origin cicd_testing2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}