forked from chipsalliance/caliptra-sw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable RTL Repo Sync workflow. Disable Auto-merge to main (chipsallia…
…nce#500) Co-authored-by: jlmahowa-amd <[email protected]>
- Loading branch information
1 parent
1f6f56b
commit a02bb59
Showing
2 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,26 +65,27 @@ jobs: | |
needs: update-rtl | ||
if: needs.update-rtl.outputs.ci_checks_needed | ||
|
||
merge-rtl-update: | ||
name: Merge RTL Update | ||
needs: [update-rtl, build-test, build-test-verilator] | ||
if: needs.update-rtl.outputs.ci_checks_needed | ||
runs-on: ubuntu-22.04 | ||
# Auto-Merging of RTL Update needs (without manual intervention) has to be re-discussed with Caliptra TAC members | ||
#merge-rtl-update: | ||
#name: Merge RTL Update | ||
#needs: [update-rtl, build-test, build-test-verilator] | ||
#if: needs.update-rtl.outputs.ci_checks_needed | ||
#runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
ref: 'main' | ||
fetch-depth: 0 | ||
#steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# submodules: 'true' | ||
# ref: 'main' | ||
# fetch-depth: 0 | ||
|
||
- name: Merge RTL changes to main branch | ||
run: | | ||
git config --global user.name "GitHub CI" | ||
git config --global user.email "[email protected]" | ||
if [[ "${{ needs.update-rtl.outputs.branch_base_ref }}" != $(git rev-parse HEAD) ]]; then | ||
echo "Commit added to main after CI RTL branch test started; cannot auto-merge branch" | ||
exit 1 | ||
fi | ||
git push origin ${{ needs.update-rtl.outputs.branch_name }} main | ||
git push origin --delete ${{ needs.update-rtl.outputs.branch_name }} | ||
# - name: Merge RTL changes to main branch | ||
# run: | | ||
# git config --global user.name "GitHub CI" | ||
# git config --global user.email "[email protected]" | ||
# if [[ "${{ needs.update-rtl.outputs.branch_base_ref }}" != $(git rev-parse HEAD) ]]; then | ||
# echo "Commit added to main after CI RTL branch test started; cannot auto-merge branch" | ||
# exit 1 | ||
# fi | ||
# git push origin ${{ needs.update-rtl.outputs.branch_name }} main | ||
# git push origin --delete ${{ needs.update-rtl.outputs.branch_name }} |