Skip to content

Commit

Permalink
evaluate to true
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Apr 14, 2024
1 parent 9de2b9c commit 2fcb3c8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ jobs:
Rscript scripts/missing_translations.R
- name: Site data - Clean folders
if: ${{ env.on_fork != true }}
if: ${{ env.on_fork != 'true' }}
run: rm -r data/directory data/rblogs

- name: Site data - DIRECTORY - Get
uses: actions/checkout@v4
if: ${{ (env.on_fork != true) && env.directory == 'main' }}
if: ${{ (env.on_fork != 'true') && env.directory == 'main' }}
with:
repository: rladies/directory
ssh-key: ${{ secrets.ssh_directoryy_repo }}
path: tmpd/dir

- name: Site data - DIRECTORY - Download artifact
uses: dawidd6/action-download-artifact@v2
if: ${{ (env.on_fork != true) && env.directory != 'main' }}
if: ${{ (env.on_fork != 'true') && env.directory != 'main' }}
with:
name: entries
github_token: ${{ secrets.GLOBAL_GHA_PAT }}
Expand All @@ -103,7 +103,7 @@ jobs:
path: entries/

- name: Site data - DIRECTORY - Move
if: ${{ env.on_fork != true }}
if: ${{ env.on_fork != 'true' }}
run: |
rm -rf data/directory/* assets/directory/*
if [ "${{ env.directory }}" = "main" ]; then
Expand All @@ -117,7 +117,7 @@ jobs:
fi
- name: Site data - Get blogs list
if: ${{ env.on_fork != true }}
if: ${{ env.on_fork != 'true' }}
uses: actions/checkout@v4
with:
repository: rladies/awesome-rladies-blogs
Expand All @@ -126,15 +126,15 @@ jobs:
path: tmpd/rblogs

- name: Site data - Meetup
if: ${{ env.on_fork != true }}
if: ${{ env.on_fork != 'true' }}
uses: actions/checkout@v4
with:
repository: rladies/meetup_archive
ssh-key: ${{ secrets.MEETUP_ARCHIVE_KEY}}
path: tmpd/mtp

- name: Site data - clean cloned repos
if: ${{ env.on_fork != true }}
if: ${{ env.on_fork != 'true' }}
run: |
cp -r tmpd/rblogs/blogs data/rblogs
cp -r tmpd/mtp/data/* data/meetup/
Expand All @@ -155,7 +155,7 @@ jobs:
- name: Deploy Preview
if: ${{ env.on_fork != true }}
if: ${{ env.on_fork != 'true' }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand Down

0 comments on commit 2fcb3c8

Please sign in to comment.