From 8235b1a821f3711cba6486157bcc68e7a205a64f Mon Sep 17 00:00:00 2001 From: dOrgJelli Date: Tue, 18 Jul 2023 20:36:15 +0200 Subject: [PATCH] chore: update interface workflow --- .github/workflows/cd.yaml | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 0cd4e10d..b5238122 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -34,29 +34,13 @@ jobs: - name: Deploy run: yarn deploy - - name: Check for changes in URI.txt - run: | - git add . - git diff --name-only | grep ^URI.txt$ - echo "changed=$?" >> $GITHUB_ENV - - - name: Commit files - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -m "Add deployments" -a - if: env.changed == 0 - - - name: Push changes - run: | - git branch -c main artifacts_interface_${{ github.run_id }} - git push origin artifacts_interface_${{ github.run_id }} - if: env.changed == 0 - - - name: Create PR - run: | - gh pr create --title "New deployment artifacts" --body "" --base main --head artifacts_interface_${{ github.run_id }} - if: env.changed == 0 + - name: PR New URI + uses: peter-evans/create-pull-request@v3 + with: + branch: interface-cd-pr-${{github.event.number}} + commit-message: "[CD] interface" + title: "[CD] interface" + body: "Triggered by: https://github.com/${{github.repository}}/pull/${{github.event.number}}" getImplementations: runs-on: ubuntu-latest