Skip to content

Commit

Permalink
remove separate commit action
Browse files Browse the repository at this point in the history
can just commit and pull request in same action
  • Loading branch information
anish-mudaraddi committed Feb 11, 2025
1 parent b9af4f4 commit d56849c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/promote_to_staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,21 @@ jobs:
rm -rf charts/staging
cp -r charts/dev charts/staging
- name: Commit changes
if: steps.check-changes.outputs.changes_detected == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "${{ steps.env-vars.outputs.pr_title }}"
branch: "${{ steps.env-vars.outputs.branch_name }}"
create_branch: true

- name: Create Pull Request
- name: Commit and Create Pull Request
if: steps.check-changes.outputs.changes_detected == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "${{ steps.env-vars.outputs.pr_title }}"
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
branch: "${{ steps.env-vars.outputs.branch_name }}"
delete-branch: true
title: ${{ steps.env-vars.outputs.pr_title }}
body: |
Automated promotion PR to copy contents from `dev` to `staging`.
This PR was automatically created by the environment promotion workflow.
branch: ${{ steps.env-vars.outputs.branch_name }}
base: main
labels: |
automated
Expand Down

0 comments on commit d56849c

Please sign in to comment.