Skip to content

Commit

Permalink
disable pull request creation web-app ci
Browse files Browse the repository at this point in the history
  • Loading branch information
minaxolone committed Apr 24, 2024
1 parent 3794cb6 commit a3e0be9
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/build-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[email protected]'
# git config --global user.name 'github-actions'
# git config --global user.email '[email protected]'

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']
});
# - 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']
# });

0 comments on commit a3e0be9

Please sign in to comment.