Skip to content

Commit

Permalink
Merge 1c148de into ecd0f17
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy authored Oct 6, 2022
2 parents ecd0f17 + 1c148de commit 1cef8ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ jobs:
docker/Dockerfile
docker/github_package_list.tsv
- name: Make branch if it doesn't exist
# Delete the branch if this has been run before
- name: Delete branch locally and remotely
run: git push origin --delete preview-${{ github.event.pull_request.number }} || echo "No branch to delete"

# Make the branch fresh
- name: Make the branch fresh
run: |
git config --local user.email "itcrtrainingnetwork@gmail.com"
git config --local user.name "jhudsl-robot"
branch_name='preview-${{ github.event.pull_request.number }}'
exists=$(git ls-remote https://${{ secrets.GH_PAT }}@github.com/$GITHUB_REPOSITORY $branch_name | wc -l | xargs)
if [[ $exists == 0 ]];then
echo branch doesnt exist
git checkout -b $branch_name || echo branch exists
git push --set-upstream origin $branch_name
else
echo branch does exist
fi
echo branch doesnt exist
git checkout -b $branch_name || echo branch exists
git push --set-upstream origin $branch_name
shell: bash

outputs:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Login as jhudsl-robot
run: |
git config --local user.email "itcrtrainingnetwork@gmail.com"
git config --local user.name "jhudsl-robot"
- uses: mshick/add-pr-comment@v1
if: ${{ github.head_ref == 'repo-sync/OTTR_Template/default' }}
with:
Expand Down

0 comments on commit 1cef8ef

Please sign in to comment.