Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gcloud version change and update git cmds to push back helm changes for custom action for GCP #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/setup-gcloud@v1
- uses: google-github-actions/setup-gcloud@v2
with:
version: '455.0.0'

- id: auth
uses: google-github-actions/auth@v1
Expand Down Expand Up @@ -134,7 +136,11 @@ runs:
shell: bash

- id: push-back
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply automatic changes to Update image repository in Helm values
file_pattern: ${{ inputs.helm_values_path }}
run: |-
git config --global user.email "[email protected]"
git config --global user.name "github-actions[bot]"
git pull
git add ${{ inputs.helm_values_path }}
git commit -m "Apply automatic changes to Update image repository in Helm values"
git push -u origin ${{ github.ref_name }}
shell: bash
Loading