Skip to content

Commit

Permalink
Merge pull request #57 from NIEHS/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
mitchellmanware authored Aug 9, 2024
2 parents daebf55 + e39fedc commit 93c738b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 84 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/protect-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
continue="${{ steps.check-base-branch.outputs.continue }}"
if [[ "$continue" == "true" ]]; then
source_branch=$(jq -r '.pull_request.head.ref' "$GITHUB_EVENT_PATH")
if [[ "$source_branch" != "staging-public" ]]; then
echo "Pull requests into \"main\" must come from \"staging-public\"."
if [[ "$source_branch" != "staging" ]]; then
echo "Pull requests into \"main\" must come from \"staging\"."
exit 1
fi
else
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/protect-staging-public.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/update-staging-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Update external repository `PCOR_bookdown_staging`

on:
push:
branches: [staging-internal]
branches: [staging]

jobs:
sync:
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Checkout `PCOR_public` repository
uses: actions/checkout@v3
with:
ref: staging-internal
ref: staging

- name: Set up Git
run: |
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
cd PCOR_bookdown_staging
git add .
git status
git commit -m "Sync PCOR_public staging-internal branch" || echo "No changes to commit"
git commit -m "Sync PCOR_public staging branch" || echo "No changes to commit"
git push https://${{ secrets.PCOR_bookdown_staging_actions_06262024 }}@github.com/NIEHS/PCOR_bookdown_staging.git main
env:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/update-staging-internal.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/update-staging-public.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bookdown::render_book("chapters/index.Rmd", "bookdown::gitbook")

The following workflow rules and branch protections facilitate development, revision, review, and publication of the CHORDS Toolkit.

<img align="center" src="images/workflow_push.png">
<img align="center" src="images/workflow_staging_2.png">

#### Development Branches

Expand Down
Binary file removed images/workflow_push.png
Binary file not shown.
Binary file added images/workflow_staging_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 93c738b

Please sign in to comment.