Skip to content

Integrate Drift Manager #26

Integrate Drift Manager

Integrate Drift Manager #26

---
name: "Rebake Tag"
on: # yamllint disable-line rule:truthy
# TBD: Enable `push` event only
- "pull_request"
# - "workflow_call"
# - "workflow_dispatch"
# push:
# tags:
# - "nautobot-app-v*"
jobs:
# ci:
# uses: ".github/workflows/ci.yml@develop"
rebake:
# needs: "ci"
runs-on: "ubuntu-22.04"
strategy:
matrix:
name:
- "firewall-models"
steps:
- name: "Invoke Workflow"
env:
GH_TOKEN: "${{ secrets.GH_NAUTOBOT_BOT_TOKEN }}"
run: |
set -e
repo="nautobot/nautobot-app-${{ matrix.name }}"
# TBD: Replace template-ref with tag name
template_ref="develop"
gh workflow run \
--repo=$repo \
--field="draft=true" \
--field="template-ref=$template_ref" \
.github/workflows/rebake.yml
run_id="$(gh run list \
--limit=1 \
--repo=$repo \
--workflow=rebake.yml \
--json=databaseId \
--jq=".[0].databaseId" \
)"
echo "run_id: $run_id"
gh run watch \
--repo=$repo \
--exit-status \
$run_id