Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables in content #100

Open
srepollock opened this issue Dec 2, 2022 · 0 comments
Open

Environment variables in content #100

srepollock opened this issue Dec 2, 2022 · 0 comments

Comments

@srepollock
Copy link

Hi there, I'm looking to use environment variables in the content string. It seems as though it's unsupported.

Wondering if this could be a new feature?

Something along the lines of:

notify-success:
  runs-on: ubuntu-latest
  if: ${{ success() }}
  steps:
    - name: Discord Webhook Action
      uses: tsickert/[email protected]
      with:
        webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
        content: "Build Succeeded: ${{GITHUB_REF_NAME}} - ${{GITHUB_RUN_ID}}"

(These are default environment variables in GitHub Actions, so this is a valid job you can use to test right here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant