Skip to content

Commit

Permalink
setup workflow env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRichi3 committed May 12, 2024
1 parent b7af751 commit 2beebf3
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:
workflow_dispatch:

env:
PR_AUTHOR_EMAIL: molunorichie@gmail.com
PR_AUTHOR_NAME: Richie
NEW_BRANCH: build_book-
DESTINATION_BRANCH: book
CONFIG_PATH: ./config.json # Path to config file for jsquarto

jobs:
build_book:
Expand All @@ -20,11 +24,7 @@ jobs:
strategy:
matrix:
node-version: [16.x]

env:
# Path to config file for jsquarto
CONFIG_PATH: ./config.json


steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -57,7 +57,8 @@ jobs:
sudo apt-get install r-base-core
sudo apt-get install libssl-dev libcurl4-openssl-dev libxml2-dev
- name: Create writable directory
# Writeable directory is needed for R packages installation, installing to the default library path is not allowed
- name: Create writable directory for R packages
run: |
mkdir ./my_R_library
chmod u+w ./my_R_library
Expand Down Expand Up @@ -94,8 +95,8 @@ jobs:
- name: Commit changes
run: |
git config --global user.email "molunorichie@gmail.com"
git config --global user.name "Richie"
git config --global user.email $PR_AUTHOR_EMAIL
git config --global user.name $PR_AUTHOR_NAME
git checkout -b $NEW_BRANCH
git status
git add .
Expand All @@ -107,16 +108,14 @@ jobs:
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ env.NEW_BRANCH }}
destination_branch: build_crowdin_integration
destination_branch: ${{ env.DESTINATION_BRANCH }}
pr_title: New book build with babelquarto
pr_body: |
:crown: *An automated PR*
Automated PR build book with babel-quarto
_Created by [repo-sync/pull-request](https://github.com/repo-sync/pull-request)_
pr_reviewer: "@RealRichi3"
pr_assignee: "RealRichi3"
pr_label: "auto-pr"
pr_draft: false
pr_allow_empty: true
Expand Down

0 comments on commit 2beebf3

Please sign in to comment.