Skip to content

Commit

Permalink
Update merge-acm-flow.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
coleenquadros authored Jul 18, 2024
1 parent 2cad54a commit 30343ec
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/merge-acm-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,42 +209,42 @@ jobs:
app_id: ${{ secrets.cloner-app-id }}
private_key: ${{ secrets.cloner-app-private-key }}
scope: ${{ steps.org.outputs.sandbox }}
- name: Create Pull Request
if: github.event_name != 'pull_request'
uses: rhobs/create-pull-request@v3
id: create-pr
with:
title: "[bot] Bump ${{ inputs.downstream }} to ${{ steps.upstream.outputs.release }}"
body: |
## Description
This is an automated version bump from CI.
The logs for this run can be found [in the syncbot repo actions](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
If you wish to perform this manually, execute the following commands from ${{ inputs.downstream }} repo:
```
git fetch https://github.com/${{ inputs.upstream }} --tags
if ! git merge refs/tags/${{ steps.upstream.outputs.release }} --no-edit; then
git checkout --theirs ${{ inputs.restore-upstream }}
git checkout --ours ${{ inputs.restore-downstream }}
git add ${{ inputs.restore-upstream }} ${{ inputs.restore-downstream }}
git merge --continue
fi
go mod tidy
go mod vendor
${{ inputs.assets-cmd }}
if [ -f scripts/rh-manifest.sh ]; then
bash scripts/rh-manifest.sh
git add rh-manifest.txt
git diff --cached --exit-code || git commit -s -m "[bot] update rh-manifest.txt"
fi
```
author: 'github-actions[bot]<github-actions[bot]@users.noreply.github.com>'
committer: 'github-actions[bot]<github-actions[bot]@users.noreply.github.com>'
signoff: true
branch: acm-prometheus:automated-updates-acm-${{ inputs.downstream-branch }}
delete-branch: true
token: ${{ steps.pr.outputs.token }}
push-to-fork: ${{ inputs.sandbox }}
push-to-fork-token: ${{ steps.cloner.outputs.token }}
- name: Create Pull Request
if: github.event_name != 'pull_request'
uses: rhobs/create-pull-request@v3
id: create-pr
with:
title: "[bot] Bump ${{ inputs.downstream }} to ${{ steps.upstream.outputs.release }}"
body: |
## Description
This is an automated version bump from CI.
The logs for this run can be found [in the syncbot repo actions](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
If you wish to perform this manually, execute the following commands from ${{ inputs.downstream }} repo:
```
git fetch https://github.com/${{ inputs.upstream }} --tags
if ! git merge refs/tags/${{ steps.upstream.outputs.release }} --no-edit; then
git checkout --theirs ${{ inputs.restore-upstream }}
git checkout --ours ${{ inputs.restore-downstream }}
git add ${{ inputs.restore-upstream }} ${{ inputs.restore-downstream }}
git merge --continue
fi
go mod tidy
go mod vendor
${{ inputs.assets-cmd }}
if [ -f scripts/rh-manifest.sh ]; then
bash scripts/rh-manifest.sh
git add rh-manifest.txt
git diff --cached --exit-code || git commit -s -m "[bot] update rh-manifest.txt"
fi
```
author: 'github-actions[bot]<github-actions[bot]@users.noreply.github.com>'
committer: 'github-actions[bot]<github-actions[bot]@users.noreply.github.com>'
signoff: true
branch: acm-prometheus:automated-updates-acm-${{ inputs.downstream-branch }}
delete-branch: true
token: ${{ steps.pr.outputs.token }}
push-to-fork: ${{ inputs.sandbox }}
push-to-fork-token: ${{ steps.cloner.outputs.token }}
# - name: Create Pull Request using GitHub CLI
# id: create-pr
# if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 30343ec

Please sign in to comment.