updates #3
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
name: Push to main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
token: ${{ secrets.GIT_TOKEN }} | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install Trestle | |
run: bash scripts/automation/install_trestle.sh | |
- name: Release | |
run: source scripts/automation/release.sh | |
- name: Push the changes | |
run: bash scripts/automation/push.sh | |
downstream-repo-update: | |
name: Update downstream repositories | |
runs-on: ubuntu-latest | |
needs: release | |
steps: | |
- name: Clone branch | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: main | |
token: ${{ secrets.GIT_TOKEN }} | |
- name: Clone downstream repo | |
uses: actions/checkout@v2 | |
with: | |
repository: degenaro/trestle-component-definition-my-gizmo | |
path: './trestle-component-definition-my-gizmo' | |
token: ${{ secrets.GIT_TOKEN }} | |
fetch-depth: 0 | |
- name: Update profiles | |
run: bash scripts/automation/update_downstream.sh | |
env: | |
GH_TOKEN: ${{ secrets.GIT_TOKEN }} | |
merge-main-to-develop: | |
name: Merge main to develop | |
runs-on: ubuntu-latest | |
needs: release | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.job }}-main | |
cancel-in-progress: true | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: tukasz/direct-merge-action@master | |
with: | |
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | |
source-branch: main | |
target-branch: develop | |
commit-message: "chore: Merge back version tags and changelog into develop." |