Skip to content

fix: Skip Campfire workflows when secret is unset #525

fix: Skip Campfire workflows when secret is unset

fix: Skip Campfire workflows when secret is unset #525

Workflow file for this run

name: Post commit info to Campfire

Check failure on line 1 in .github/workflows/campfire-notify.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/campfire-notify.yml

Invalid workflow file

(Line: 12, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CAMPFIRE_MESSAGES_URL != ''
on:
push:
branches: [ master ]
permissions:
contents: read
jobs:
post-commit-info:
if: secrets.CAMPFIRE_MESSAGES_URL != ''
runs-on: ubuntu-latest
steps:
- name: Post commit info to Campfire
continue-on-error: true
uses: shane-lamb/campfire-notify-action@2ba014976f1fcce1740addd8961ea20b3b784a5f # v1.1.6
with:
messages_url: ${{ secrets.CAMPFIRE_MESSAGES_URL }}
template: commit_pushed