chore(actions): Add a different user for github actions (#404)
Signed-off-by: udit <udit.gaurav@mayadata.io>
This commit is contained in:
15
.github/workflows/push.yml
vendored
15
.github/workflows/push.yml
vendored
@@ -27,7 +27,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{steps.getcommit.outputs.sha}}
|
ref: ${{steps.getcommit.outputs.sha}}
|
||||||
path: go/src/github.com/${{github.repository}}
|
path: go/src/github.com/${{github.repository}}
|
||||||
|
token: ${{ secrets.ADMIN_TOKEN }}
|
||||||
|
|
||||||
# Combine the experiment CRs
|
# Combine the experiment CRs
|
||||||
- name: Combine experiment CR
|
- name: Combine experiment CR
|
||||||
@@ -37,18 +38,10 @@ jobs:
|
|||||||
make combineExpCR
|
make combineExpCR
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# Commit the changes from the chart directory
|
# Commit and push the changes from the chart directory
|
||||||
- name: Commit the changes
|
- name: Commit and Push the changes
|
||||||
run: |
|
run: |
|
||||||
cd ${GOPATH}/src/github.com/${{github.repository}}
|
cd ${GOPATH}/src/github.com/${{github.repository}}
|
||||||
make push
|
make push
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# Push the changes
|
|
||||||
- name: Push changes
|
|
||||||
uses: ad-m/github-push-action@master
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
branch: ${{ github.ref }}
|
|
||||||
directory: go/src/github.com/${{github.repository}}
|
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
setup_git() {
|
setup_git() {
|
||||||
git config --global user.email "litmusbotci@gmail.com"
|
git config --global user.email "litmuschaos@gmail.com"
|
||||||
git config --global user.name "litmus[bot]"
|
git config --global user.name "litmusbot"
|
||||||
}
|
}
|
||||||
|
|
||||||
commit_updated_changes() {
|
commit_updated_changes() {
|
||||||
@@ -12,6 +12,11 @@ commit_updated_changes() {
|
|||||||
git status
|
git status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upload_files() {
|
||||||
|
git remote -v
|
||||||
|
git push origin master
|
||||||
|
}
|
||||||
|
|
||||||
setup_git
|
setup_git
|
||||||
commit_updated_changes
|
commit_updated_changes
|
||||||
|
upload_files
|
||||||
|
Reference in New Issue
Block a user