Skip to content

Commit

Permalink
Update check_versions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Oct 5, 2023
1 parent c28b70c commit 9e6e852
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check_versions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: Check container software versions

on:
Expand All @@ -15,7 +14,6 @@ env:
WORKFLOW_AUTH_TOKEN: ${{ secrets.GH_PAT_MIKENYE }}

jobs:

version_in_container:
name: Check versions in 'latest' image
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,9 +63,12 @@ jobs:
if: ${{ needs.version_in_container.outputs.currverhash != needs.latest_version.outputs.latestverhash }}
runs-on: ubuntu-latest
env:
WORKFLOW_REASON: "triggered via check_versions.yml in ${{ github.repository }}"
WORKFLOW_AUTH_TOKEN: ${{ secrets.GH_PAT_MIKENYE }}
WORKFLOW_REPO: sdr-enthusiasts/docker-tar1090
WORKFLOW_FILE: deploy.yml
WORKFLOW_REASON: "triggered via deploy_ghcr.yml in sdr-enthusiasts/docker-baseimage"
steps:
- name: Trigger ${{ env.WORKFLOW_FILE }} in ${{ env.WORKFLOW_REPO }}
run: |
echo "$WORKFLOW_AUTH_TOKEN" | gh auth login --with-token
gh workflow run --ref main --repo "${{ github.repository }}" "${{ env.WORKFLOW_FILE_TO_TRIGGER }}" -f reason="$WORKFLOW_REASON"
gh workflow run --ref main --repo "$WORKFLOW_REPO" "$WORKFLOW_FILE" -f reason="$WORKFLOW_REASON"

0 comments on commit 9e6e852

Please sign in to comment.