-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable pull request creation web-app ci
- Loading branch information
1 parent
3794cb6
commit a3e0be9
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'] | ||
# }); |