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

workflow url and workflow parameters no longer works in V2 <{workflow_url}|{workflow}> #94

Open
renperez-cpi opened this issue Feb 21, 2023 · 2 comments
Assignees

Comments

@renperez-cpi
Copy link

i noticed that switching to v2 these parameters no longer works <{workflow_url}|{workflow}>. works fine with v1 version. please advice

@ravsam-bot
Copy link
Contributor

ravsam-bot bot commented Feb 21, 2023

Hello and welcome to RavSam 💜. Thanks for opening your first issue. I will assign one of our team members to take a look at the problem you have raised. Make sure to include as much information as possible to help our team diagnose the issue and solve it quickly.

If the problem is related to a security concern, then please delete this issue and send us an email at [email protected].

@mvanbaak
Copy link

mvanbaak commented Jun 12, 2024

Make sure you give the GitHub token enough permissions.
What fixed it to me was adding this to the workflow:

permissions:
  actions: read # This is required for the slack notification action

And provide the token to the step, as documented in the README here.

      - name: Report test status
        if: ${{ ! success() }}
        uses: ravsamhq/notify-slack-action@v2
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          status: ${{ job.status }}
          notification_title: "{repo} {workflow} {job}"
          footer: "<{repo_url}|Repo> | <{workflow_url}|Workflow> | <{run_url}|Run>"
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_URL }}

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

3 participants