- Use github.repository_owner instead of hardcoded 'itzg' for Docker Hub org - Add PUSH environment variable to control when images are pushed (only on itzg repo) - Update login conditions to only run on original repo (env.PUSH) - Add repository_owner check to issues-notify workflow These changes allow workflows to work correctly when the repository is forked. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
17 lines
323 B
YAML
17 lines
323 B
YAML
name: Issues notify
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
- labeled
|
|
- unlabeled
|
|
- closed
|
|
|
|
jobs:
|
|
notify:
|
|
if: github.repository_owner == 'itzg'
|
|
uses: itzg/github-workflows/.github/workflows/issues-notify-discord.yml@main
|
|
secrets:
|
|
discordWebhook: "${{secrets.DISCORD_ISSUES_WEBHOOK}}"
|