Skip to content

Commit

Permalink
Testing...
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed May 21, 2024
1 parent 90114fc commit 1f2aef9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
fetch-depth: 0
if: ${{ env.PR_BRANCH && env.BUILD_URL }}

- name: Skip if branch exists already
run: |
set -e
git fetch origin ${{ env.PR_BRANCH }} || echo "Branch ${{ env.PR_BRANCH }} does not exist yet."
if: ${{ env.PR_BRANCH && env.BUILD_URL }}

- name: Insert dependency
uses: Wandalen/wretry.action@master
id: manipulate_composer
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Testing
run: |
BRANCH_EXISTS=$(git fetch origin develop || echo "John")
echo "$BRANCH_EXISTS"
# echo "BUILD_URL_IS_ACCEPTED=$BUILD_URL_IS_ACCEPTED" >> $GITHUB_ENV
echo "BRANCH_EXISTS=$(git show-ref --quiet refs/heads/abe && echo 'true' || echo 'false')" >> $GITHUB_ENV
- name: Testing II
run: |
echo "Hello"
echo "${{ toJson(env) }}"

0 comments on commit 1f2aef9

Please sign in to comment.