Skip to content

Commit

Permalink
Enable RTL Repo Sync workflow. Disable Auto-merge to main (chipsallia…
Browse files Browse the repository at this point in the history
…nce#500)

Co-authored-by: jlmahowa-amd <[email protected]>
  • Loading branch information
fdamato and jlmahowa-amd authored Jul 18, 2023
1 parent 1f6f56b commit a02bb59
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ permissions:
contents: write

jobs:
# Disable RTL-Repo-Sync until manual fixes to work with the latest RTL are not made
#rtl-repo-sync:
# name: RTL Repo Sync
# uses: ./.github/workflows/rtl-repo-sync.yml
rtl-repo-sync:
name: RTL Repo Sync
uses: ./.github/workflows/rtl-repo-sync.yml

find-latest-release:
name: Find Latest Release
Expand Down
43 changes: 22 additions & 21 deletions .github/workflows/rtl-repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit a02bb59

Please sign in to comment.