Skip to content

Commit

Permalink
wip: watch
Browse files Browse the repository at this point in the history
  • Loading branch information
snaselj committed Jan 10, 2024
1 parent 7585f78 commit bf9d7f2
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/tag-nautobot-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: "Rebake Tag"
on: # yamllint disable-line rule:truthy
# TBD: Enable `push` event only
- "pull_request"
- "workflow_call"
- "workflow_dispatch"
# - "workflow_call"
# - "workflow_dispatch"
# push:
# tags:
# - "nautobot-app-v*"
Expand All @@ -22,21 +22,25 @@ jobs:
- name: "Invoke Workflow"
env:
GH_TOKEN: "${{ secrets.GH_NAUTOBOT_BOT_TOKEN }}"
# GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
# TBD: Replace template-ref with tag name
set -e
repo="nautobot/nautobot-app-${{ matrix.name }}"
# TBD: Replace template-ref with tag name
template_ref="develop"
gh workflow run \
--repo=nautobot/nautobot-app-${{ matrix.name }} \
--repo=$repo \
--field="draft=true" \
--field="template-ref=develop" \
--field="template-ref=$template_ref" \
.github/workflows/rebake.yml
run_id="$(gh run list \
--limit=1 \
--repo=nautobot/nautobot-app-${{ matrix.name }} \
--repo=$repo \
--workflow=rebake.yml \
--json=databaseId \
--jq=".[0].databaseId" \
)"
echo "run_id: $run_id"
gh run watch --exit-status $run_id
gh run watch \
--repo=$repo \
--exit-status \
$run_id

0 comments on commit bf9d7f2

Please sign in to comment.