Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #254 combine workflows #255

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,37 @@ name: Quarto Publish

on:
workflow_dispatch:
workflow_run:
workflows: ["Update-post-dates"]
push:
branches: [main]
types:
- completed

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: main
token: ${{ secrets.PHARMAVERSE_BOT }}

- 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 and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[skip actions] Auto-update blog post date"
file_pattern: "."
commit_user_name: github-actions
commit_user_email: >-
41898282+github-actions[bot]@users.noreply.github.com
continue-on-error: true

build-deploy:
runs-on: ubuntu-latest
permissions:
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/update_post_dates.yml

This file was deleted.