Apply fork-friendly workflow changes from docker-mc-proxy#361 (#664)
- 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>
This commit is contained in:
1 parent
bb6212aa58
commit
5275a0517e
5 files changed
+22
-5
No files matched your search
@@ -6,7 +6,8 @@ on:
|
||||
jobs:
|
||||
auto-release:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'itzg/docker-minecraft-bedrock-server'
|
||||
# If forked, changed to your username to enable auto-releases
|
||||
if: github.repository_owner == 'itzg'
|
||||
permissions:
|
||||
# allow for creating releases/tags
|
||||
contents: write
|
||||
|
||||
Reference in new issue
Block a user