mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-08 05:57:26 +03:00
ci: add permissions to make a release
follow-up to https://github.com/systemd/systemd/pull/27071 in order to create Github Releases, the job needs permissions to write contents also: - pinned the `softprops/action-gh-release` action to a specific commit - made it only active on the `systemd` organization repos (so not on forks) (cherry picked from commit 7b411cf8421ef3bf6c05edcf131f63b8e7bae8ac) (cherry picked from commit dc2facf61d80cbb45421d024b56b93fb70e363aa) (cherry picked from commit 24c3212eaeb48ceb052c66f178da471383c94438)
This commit is contained in:
parent
d277048bb4
commit
62c29bc87b
8
.github/workflows/make_release.yml
vendored
8
.github/workflows/make_release.yml
vendored
@ -5,14 +5,20 @@ on:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
if: ${{ github.repository_owner == 'systemd' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
|
||||
with:
|
||||
prerelease: ${{ contains(github.ref_name, '-rc') }}
|
||||
draft: ${{ github.repository == 'systemd/systemd' }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user