Skip to content

Commit

Permalink
Merge pull request #26949 from element-hq/t3chguy/saner-releases/yarn…
Browse files Browse the repository at this point in the history
…-lock

Saner Releases - ensure we set up staging branches in bottom-up order
  • Loading branch information
t3chguy authored Feb 1, 2024
2 parents 7c584df + 145f551 commit 010d835
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release_prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ on:
jobs:
prepare:
runs-on: ubuntu-latest
env:
# The order is specified bottom-up to avoid any races for allchange
REPOS: matrix-js-sdk matrix-react-sdk element-web element-desktop
steps:
- name: Checkout Element Desktop
uses: actions/checkout@v4
Expand Down Expand Up @@ -67,15 +70,11 @@ jobs:
fetch-tags: true
token: ${{ secrets.ELEMENT_BOT_TOKEN }}

- name: Resolve repos
run: |
echo "REPOS=$(ls . | tr '\n' ' ')" >> $GITHUB_ENV
- name: Merge develop
run: |
git config --global user.email "releases@riot.im"
git config --global user.name "RiotRobot"
for REPO in $REPOS; do git -C "$REPO" merge origin/develop; done
for REPO in $REPOS; do [ -d "$REPO" ] && git -C "$REPO" merge origin/develop; done
- name: Push staging
run: for REPO in $REPOS; do git -C "$REPO" push origin staging; done
run: for REPO in $REPOS; do [ -d "$REPO" ] && git -C "$REPO" push origin staging; done

0 comments on commit 010d835

Please sign in to comment.