Skip to content

Integrate Drift Manager #17

Integrate Drift Manager

Integrate Drift Manager #17

---
name: "Rebake Tag"
on: # yamllint disable-line rule:truthy
- "pull_request"
- "workflow_call"
- "workflow_dispatch"
# push:
# tags:
# - "nautobot-app-v*"
jobs:
# qa:
# uses: "nautobot/cookiecutter-nautobot-app/.github/workflows/check-pr-qa.yaml@develop"
rebake:
# needs: "qa"
runs-on: "ubuntu-22.04"
strategy:
matrix:
name:
- "firewall-models"
steps:
- name: "Invoke Workflow"
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
# TBD: Replace template-ref with tag name
ref="develop"
run_id=$( \
gh workflow run \
--repo="nautobot/nautobot-plugin-${{ matrix.name }}" \
--field="draft=true" \
--field="template-ref=$ref" \
".github/workflows/rebake.yml" \
| \
awk '/Run ID/{print $3}' \
)
echo "run_id: $run_id"
gh run watch --exit-status $run_id