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

Dont get directory or blogslist on PRs from fork #268

Closed
wants to merge 1 commit into from
Closed
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
11 changes: 10 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ jobs:
Rscript scripts/missing_translations.R

- name: Site data - Clean folders
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
run: rm -r data/directory data/rblogs

- name: Site data - DIRECTORY - Get
uses: actions/checkout@v3
if: "${{ env.directory == 'main' }}"
if: |
${{ env.directory == 'main' }} &&
(
${{ github.event_name != 'pull_request' }} ||
${{ github.event.pull_request.head.repo.full_name == github.repository }}
)
with:
repository: rladies/directory
ssh-key: ${{ secrets.ssh_directoryy_repo }}
Expand All @@ -96,6 +102,7 @@ jobs:
path: entries/

- name: Site data - DIRECTORY - Move
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
run: |
rm -rf data/directory/* assets/directory/*
if [ "${{ env.directory }}" = "main" ]; then
Expand All @@ -109,13 +116,15 @@ jobs:
fi

- name: Site data - Meetup
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
uses: actions/checkout@v3
with:
repository: rladies/meetup_archive
ssh-key: ${{ secrets.MEETUP_ARCHIVE_KEY}}
path: tmpd/mtp

- name: Site data - Get blogs list
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
uses: actions/checkout@v3
with:
repository: rladies/awesome-rladies-blogs
Expand Down