Skip to content

Commit

Permalink
fix secrets usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Jul 24, 2024
1 parent 302f9e1 commit 9779d45
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: Test Suites
on:
workflow_call:
secrets:
STRIPE_API_KEY:
required: true
SLACK_WEBHOOK_URL:
required: false

Expand Down Expand Up @@ -53,7 +55,7 @@ jobs:
# Setup .env
touch .env
# ENV
printf "STRIPE_API_KEY=${{ env.STRIPE_API_KEY }}\n" >> .env
printf "STRIPE_API_KEY=${{ secrets.STRIPE_API_KEY }}\n" >> .env
- name: Install Test Harness with ColdBox ${{ matrix.coldboxVersion }}
run: |
Expand Down Expand Up @@ -98,15 +100,15 @@ jobs:
.engine/**/logs/*
.engine/**/WEB-INF/cfusion/logs/*
- name: Slack Notifications
# Only on failures and NOT in pull requests
if: ${{ failure() && !startsWith( 'pull_request', github.event_name ) }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: coding
SLACK_COLOR: ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
SLACK_ICON_EMOJI: ":bell:"
SLACK_MESSAGE: '${{ github.repository }} tests failed :cry:'
SLACK_TITLE: ${{ github.repository }} Tests For ${{ matrix.cfengine }} with ColdBox ${{ matrix.coldboxVersion }} failed
SLACK_USERNAME: CI
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
# - name: Slack Notifications
# # Only on failures and NOT in pull requests
# if: ${{ failure() && !startsWith( 'pull_request', github.event_name ) }}
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_CHANNEL: coding
# SLACK_COLOR: ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
# SLACK_ICON_EMOJI: ":bell:"
# SLACK_MESSAGE: '${{ github.repository }} tests failed :cry:'
# SLACK_TITLE: ${{ github.repository }} Tests For ${{ matrix.cfengine }} with ColdBox ${{ matrix.coldboxVersion }} failed
# SLACK_USERNAME: CI
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 9779d45

Please sign in to comment.