Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 23 additions & 29 deletions .github/workflows/check-deployed-package.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,35 @@
name: Check deployed package

# CI calls it after each release; run it by hand to check any version from any branch.
on:
workflow_call:
inputs:
version:
type: string
required: true
secrets: # run.sh fails with a clear message when one is missing
LOGDASH_API_KEY:
required: false
LOGDASH_PERSONAL_API_KEY:
required: false
workflow_dispatch:
workflow_run:
workflows: ['CI/CD Pipeline']
types:
- completed
inputs:
version:
description: Version to check; empty checks the latest release
type: string

permissions:
contents: read

jobs:
check-deployed-package:
name: Check deployed package
runs-on: ubuntu-latest
if: >
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
startsWith(github.event.workflow_run.head_branch, 'v') &&
github.event.workflow_run.head_branch != github.event.workflow_run.repository.default_branch
permissions:
contents: read
packages: read

timeout-minutes: 75 # up to an hour waiting for Maven Central
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Make run script executable
run: chmod +x check-deployed-package/run.sh

- name: Verify environment variables
run: |
echo "GITHUB_ACTOR: ${{ github.actor }}"
echo "Has GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN != '' }}"
echo "Has LOGDASH_API_KEY: ${{ secrets.LOGDASH_API_KEY != '' }}"

- name: Run LogDash demo
- uses: actions/checkout@v7
- run: ./check-deployed-package/run.sh
env:
LOGDASH_VERSION: ${{ inputs.version }}
LOGDASH_API_KEY: ${{ secrets.LOGDASH_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
run: ./check-deployed-package/run.sh
LOGDASH_PERSONAL_API_KEY: ${{ secrets.LOGDASH_PERSONAL_API_KEY }}
Loading
Loading