Skip to content

Commit

Permalink
fix: pr
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleet committed Nov 19, 2022
1 parent c99ca7c commit 7f429d6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/gitops-promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
persist-credentials: false
fetch-depth: 0

- name: Create PR branch
if: inputs.pull_request
run: |
git checkout -b promote/${{ github.event.repository.name }}-${{ github.ref_name }}
# - name: Create PR branch
# if: inputs.pull_request
# run: |
# git checkout -b promote/${{ github.event.repository.name }}-${{ github.ref_name }}

- name: Update prod environment
uses: mikefarah/yq@master
Expand Down Expand Up @@ -62,13 +62,13 @@ jobs:
github_token: ${{ secrets.GH_ORG_TOKEN }}
repository: ${{ inputs.environment_repository }}

- name: Push branch
if: inputs.pull_request
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_ORG_TOKEN }}
repository: ${{ inputs.environment_repository }}
branch: promote/${{ github.event.repository.name }}-${{ github.ref_name }}
# - name: Push branch
# if: inputs.pull_request
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GH_ORG_TOKEN }}
# repository: ${{ inputs.environment_repository }}
# branch: promote/${{ github.event.repository.name }}-${{ github.ref_name }}

- name: Create Pull Request
if: inputs.pull_request
Expand Down

0 comments on commit 7f429d6

Please sign in to comment.