Bump app component from e000d6e5 to 03d3f06d #18
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: Deploy submodule updates to the staging environment | |
on: | |
push: | |
branches: [main] | |
jobs: | |
cloud_deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: false | |
- name: Set up files changed | |
id: files | |
run: | | |
echo "::set-output name=files-changed::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})" | |
echo "::set-output name=app-commit::$(git ls-tree HEAD components/app | awk '{print $3}')" | |
echo "::set-output name=tenant-manager-commit::$(git ls-tree HEAD components/tenant-manager | awk '{print $3}')" | |
- name: Deploy tenant manager | |
uses: benc-uk/workflow-dispatch@v1 | |
if: contains(steps.files.outputs.files-changed, 'components/tenant-manager') | |
with: | |
workflow: tzcp-deploy-staging.yaml | |
repo: tenzir/event-horizon | |
token: "${{ secrets.REPO_SCOPE_ACCESS_TOKEN }}" | |
ref: ${{ steps.files.tenant-manager-commit }}" | |
# inputs: '{ "example_payload": "value" }' | |
# App deployments to staging are done automatically by Vercel atm. | |
# - name: Deploy app | |
# uses: benc-uk/workflow-dispatch@v1 | |
# with: | |
# workflow: deploy-staging.yaml | |
# repo: tenzir/app | |
# ref: ${{ steps.app-commit.outputs.commit }}" |