Skip to content

Commit

Permalink
ci: do not run release generation on forked repos by default
Browse files Browse the repository at this point in the history
If RELEASE Github variable set, or a manual github action, than
run the job as before.

Also make version information optional as the script is now able
to compute the version.
  • Loading branch information
Henrik66 committed Aug 26, 2023
1 parent af3076a commit 5fd9cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
inputs:
tag:
description: "release version number (3 digits)"
required: true

permissions:
contents: write

jobs:
release:
if: github.repository == 'dracutdevs/dracut' || vars.RELEASE == 'enabled' || ${{ inputs.tag }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 5fd9cc0

Please sign in to comment.