diff --git a/.github/workflows/update_post_dates.yml b/.github/workflows/update_post_dates.yml index 1d2a510b..7d8d65c2 100644 --- a/.github/workflows/update_post_dates.yml +++ b/.github/workflows/update_post_dates.yml @@ -10,19 +10,19 @@ jobs: runs-on: ubuntu-latest container: image: "rocker/tidyverse:4.2.1" - steps: - - uses: actions/checkout@v4 - with: - ref: cicd_testing2 # replace with the branch you want to checkout - - name: Run update_post_dates - run: source("R/update_post_dates.R") - shell: Rscript {0} - - 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 your-branch-name # replace with the branch you want to push to - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + with: + ref: cicd_testing2 # replace with the branch you want to checkout + - name: Run update_post_dates + run: source("R/update_post_dates.R") + shell: Rscript {0} + - 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 pushorigin your-branch-name # replace with the branch you want to push to + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file