ci: auto-sync MOSuite subtree#1
Open
kelly-sovacool wants to merge 12 commits into
Open
Conversation
git-subtree-dir: code/MOSuite git-subtree-split: c09ee39f9b282237f13d88dcf4cdfed965209c68
…/MOSuite-plot-expr-heatmap into auto-sync-subtree
6c3f164 chore: prepare v0.3.1 release (#216) 96fd3d6 ci: 🤖 auto-format 7df09af chore: bump dev version after release git-subtree-dir: code/MOSuite git-subtree-split: 6c3f164663c4302a9b0fcc0acfd10cc2dfc2fac3
Comment on lines
+10
to
+41
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| config: | ||
| - { remote: CCBR/MOSuite, local: code/MOSuite } | ||
| steps: | ||
| - name: Generate a token | ||
| id: generate-token | ||
| uses: actions/create-github-app-token@v2 | ||
| with: | ||
| app-id: ${{ vars.CCBR_BOT_APP_ID }} | ||
| private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }} | ||
| owner: ${{ github.repository_owner }} | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| token: ${{ steps.generate-token.outputs.token }} | ||
| - name: git config | ||
| run: | | ||
| git config --global user.name "CCBR-bot" | ||
| git config --global user.email "258092125+ccbr-bot@users.noreply.github.com" | ||
| - name: Pull subtree | ||
| env: | ||
| local_branch_name: pull/${{ matrix.config.remote }} | ||
| remote_branch_name: main # TODO use release ref from repo dispatch payload | ||
| run: | | ||
| git switch -c ${{ env.local_branch_name }} | ||
| git remote add -f subtree-remote ${{ matrix.config.remote }} | ||
| git fetch subtree-remote main | ||
| git subtree pull --prefix ${{ matrix.config.local }} subtree-remote ${{ env.remote_branch_name }} --squash | ||
| git add ${{ matrix.config.local }} | ||
| git commit -m 'chore: pull subtree from ${{ matrix.config.remote}} @ ${{ env.remote_branch_name}}' | ||
| gh pr create --fill-first |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
allows devs & analysts to edit the MOSuite code as needed for custom analyses
Issues
PR Checklist
(
Strikethroughany points that are not applicable.)CHANGELOG.mdwith a short description of any user-facing changes and reference the PR number. Follow the style described in https://style.tidyverse.org/news.html[ ] Thetestsworkflow succeeds on the latest commit.