Integrate Drift Manager #13
Workflow file for this run
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: "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 |