Skip to content

Commit

Permalink
Utils connection pipeline start
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf committed Jan 26, 2024
1 parent e5844ae commit 2e1df84
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,6 @@ jobs:
with:
fetch-depth: 0

- name: Check for UTILS branch in Fork
id: check-branch
run: |
USER_FORK="https://github.com/${{ github.event.pull_request.user.login }}/utils.git"
BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
BRANCH_EXISTS=$(curl -s -o /dev/null -w '%{http_code}' "$USER_FORK/branches/$BRANCH_NAME" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}")
if [ $BRANCH_EXISTS -eq 200 ]; then
echo "UTILS_FORK_BRANCH_EXISTS=true" >> $GITHUB_ENV
echo "USER_FORK=$USER_FORK" >> $GITHUB_ENV
else
echo "UTILS_FORK_BRANCH_EXISTS=false" >> $GITHUB_ENV
- name: Kontorla promennych
run: |
echo $USER_FORK
echo $BRANCH_NAME
echo $BRANCH_EXISTS
echo $UTILS_FORK_BRANCH_EXISTS
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down

0 comments on commit 2e1df84

Please sign in to comment.