-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Undo fork pull request adjustments (#399)
* Revert "Try to adjust for if its a forked PR (#394)" This reverts commit d7bd6a5. * Revert "One more adjustment for forks (#396)" This reverts commit b66ca23.
- Loading branch information
Showing
2 changed files
with
2 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ on: | |
pull_request: | ||
branches: [ main ] | ||
|
||
permissions: write-all | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "style and check" | ||
|
@@ -43,25 +41,12 @@ jobs: | |
name: spell-check-results | ||
path: resources/spell_check_results.tsv | ||
|
||
# Add remote if this is a fork | ||
- name: Add remote if its a fork | ||
if: github.event.repository.name == 'OTTR_Template' | ||
run: | | ||
org_name=$(dirname ${{github.repository}}) | ||
echo ::set-output name=org_name::$org_name | ||
echo $org_name | ||
git remote add $org_name https://github.com/$org_name/OTTR_Template | ||
git fetch $org_name | ||
- name: Spell check errors | ||
run: | | ||
# Get on the preview branch if it exists. If it doesn't create it. | ||
branch_name='preview-${{ github.event.pull_request.number }}' | ||
git rev-parse --quiet --verify $branch_name >/dev/null && exists=true || exists=false | ||
git remote add jhudsl [email protected]:jhudsl/OTTR_Template.git | ||
if [[ $exists == true ]]; | ||
then | ||
git checkout $branch_name | ||
|