Skip to content

Commit

Permalink
Merge pull request #2463 from IDEMSInternational/ChrisMarsh82-patch-1
Browse files Browse the repository at this point in the history
Update reusable-content-sync.yml
  • Loading branch information
ChrisMarsh82 authored Oct 11, 2024
2 parents b5b7046 + 508a286 commit 3b3493c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/reusable-content-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ env:
PARENT_DEPLOYMENT_REPO: ${{vars.PARENT_DEPLOYMENT_REPO}}
PARENT_DEPLOYMENT_NAME: ${{vars.PARENT_DEPLOYMENT_NAME}}
PARENT_DEPLOYMENT_BRANCH: ${{vars.PARENT_DEPLOYMENT_BRANCH}}
DEPLOYMENT_PRIVATE_KEY: ${{secrets.DEPLOYMENT_PRIVATE_KEY}}
FIREBASE_CONFIG: ${{secrets.FIREBASE_CONFIG}}
GDRIVE_CREDENTIALS: ${{ secrets.GDRIVE_CREDENTIALS }}
GDRIVE_TOKEN: ${{ secrets.GDRIVE_TOKEN }}
PAT: ${{ secrets.PAT }}


name: Perform content sync and create a PR
Expand All @@ -33,11 +32,18 @@ on:
pr-title:
description: Title for PR
type: string
default: sync content from google sheets
default: sync content from Google Sheets
pr-body:
description: Description for PR
type: string
default: Automated PR creation from actions
secrets: # Declare secrets you expect to receive
GDRIVE_CREDENTIALS:
required: true
GDRIVE_TOKEN:
required: true
PAT:
required: true

jobs:
build:
Expand Down Expand Up @@ -67,11 +73,7 @@ jobs:
with:
token: ${{ secrets.PAT }}
path: ".idems_app/deployments/${{env.DEPLOYMENT_NAME}}"

- name: Populate Encryption key
if: env.DEPLOYMENT_PRIVATE_KEY != ''
run: echo "${{env.DEPLOYMENT_PRIVATE_KEY}}" > ./.idems_app/deployments/${{env.DEPLOYMENT_NAME}}/encrypted/private.key


- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -119,7 +121,7 @@ jobs:
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.PAT }}
token: ${{ env.PAT }}
# Relative path under $GITHUB_WORKSPACE to the repository. Defaults to $GITHUB_WORKSPACE.
path: .idems_app/deployments/${{env.DEPLOYMENT_NAME}}
# The title of the pull request.
Expand Down

0 comments on commit 3b3493c

Please sign in to comment.