Update Codelabs Site #309
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
| name: Update Codelabs Site | |
| on: | |
| workflow_run: | |
| workflows: [Export Codelabs] | |
| types: | |
| - completed | |
| jobs: | |
| Update-codelabs-site: | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout site repo | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: SolaceDev/solace-dev-codelabs-site | |
| submodules: recursive | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| path: site | |
| - name: Install SSH key | |
| uses: shimataro/ssh-key-action@v2 | |
| with: | |
| key: ${{ secrets.SSH_KEY }} | |
| known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
| - name: Update submodule | |
| run: | | |
| cd site | |
| git submodule update --remote | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . | |
| git commit -m "update submodule from github actions" | |
| git remote add upstream git@github.com:SolaceDev/solace-dev-codelabs-site.git | |
| git push upstream master |