Skip to content

Update Codelabs Site #254

Update Codelabs Site

Update Codelabs Site #254

Workflow file for this run

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 [email protected]
git add .
git commit -m "update submodule from github actions"
git remote add upstream [email protected]:SolaceDev/solace-dev-codelabs-site.git
git push upstream master