Skip to content

Merge branch 'cicd_testing2' into 184_test #10

Merge branch 'cicd_testing2' into 184_test

Merge branch 'cicd_testing2' into 184_test #10

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:

Check failure on line 13 in .github/workflows/update_post_dates.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update_post_dates.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- 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 }}