Skip to content

Commit

Permalink
chore: update interface workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Jul 18, 2023
1 parent 516af6d commit 8235b1a
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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
Expand Down

0 comments on commit 8235b1a

Please sign in to comment.