From a3e0be939188b12d27980b3ed0cd1982609bc9cd Mon Sep 17 00:00:00 2001 From: minaxolone Date: Wed, 24 Apr 2024 18:52:07 -0400 Subject: [PATCH] disable pull request creation web-app ci --- .github/workflows/build-web-app.yml | 62 ++++++++++++++--------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build-web-app.yml b/.github/workflows/build-web-app.yml index c6f37b5..3d0f031 100644 --- a/.github/workflows/build-web-app.yml +++ b/.github/workflows/build-web-app.yml @@ -46,39 +46,39 @@ jobs: build-args: | CI_COMMIT_SHA=${{ github.sha }} - - name: Render k8s manifests - run: | - export GITHUB_SHA="${{ github.sha }}" + # - name: Render k8s manifests + # run: | + # export GITHUB_SHA="${{ github.sha }}" - envsubst < .templates/infra/web-app/deployment.yaml > infra/web-app/deployment.yaml + # envsubst < .templates/infra/web-app/deployment.yaml > infra/web-app/deployment.yaml - git config --global user.name 'github-actions' - git config --global user.email 'github-actions@github.com' + # git config --global user.name 'github-actions' + # git config --global user.email 'github-actions@github.com' - git add infra/web-app/deployment.yaml + # git add infra/web-app/deployment.yaml - git commit -m "Update web-app deployment" || echo "No changes to commit" - git push origin ${{ github.ref_name }}:ci-deployment -f + # git commit -m "Update web-app deployment" || echo "No changes to commit" + # git push origin ${{ github.ref_name }}:ci-deployment -f - - name: Create Pull Request - uses: actions/github-script@v6 - with: - script: | - const { repo, owner } = context.repo; - const result = await github.rest.pulls.create({ - title: '[Example] Simple demo', - owner, - repo, - head: '${{ github.ref_name }}', - base: 'main', - body: [ - 'This PR is auto-generated by', - '[actions/github-script](https://github.com/actions/github-script).' - ].join('\n') - }); - github.rest.issues.addLabels({ - owner, - repo, - issue_number: result.data.number, - labels: ['feature', 'automated pr'] - }); \ No newline at end of file + # - name: Create Pull Request + # uses: actions/github-script@v6 + # with: + # script: | + # const { repo, owner } = context.repo; + # const result = await github.rest.pulls.create({ + # title: '[Example] Simple demo', + # owner, + # repo, + # head: '${{ github.ref_name }}', + # base: 'main', + # body: [ + # 'This PR is auto-generated by', + # '[actions/github-script](https://github.com/actions/github-script).' + # ].join('\n') + # }); + # github.rest.issues.addLabels({ + # owner, + # repo, + # issue_number: result.data.number, + # labels: ['feature', 'automated pr'] + # }); \ No newline at end of file