- 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>
19 lines
458 B
YAML
19 lines
458 B
YAML
name: Auto release
|
|
on:
|
|
schedule:
|
|
- cron: "0 14 * * *"
|
|
workflow_dispatch:
|
|
jobs:
|
|
auto-release:
|
|
runs-on: ubuntu-latest
|
|
# If forked, changed to your username to enable auto-releases
|
|
if: github.repository_owner == 'itzg'
|
|
permissions:
|
|
# allow for creating releases/tags
|
|
contents: write
|
|
steps:
|
|
- uses: zenengeo/github-auto-release-action@main
|
|
with:
|
|
stable-duration: 3d
|
|
force-duration: 14d
|