Merge pull request #2598 from build-5/master-to-dev #47
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 interfaces to the public repo, develop | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
push_interfaces: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Git | |
run: | | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Push to public repo | |
run: | | |
cd ../ | |
git clone -b develop https://username:[email protected]/build-5/interfaces.git | |
cp -r core/packages/interfaces/* interfaces/ | |
cd interfaces | |
git add --all | |
git commit -a --allow-empty-message -m '' | |
git push origin develop | |
push_lib: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Git | |
run: | | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Push to public repo | |
run: | | |
cd ../ | |
git clone -b develop https://username:[email protected]/build-5/lib.git | |
cp -r core/packages/lib/* lib/ | |
cd lib | |
git add --all | |
git commit -a --allow-empty-message -m '' | |
git push origin develop | |