зеркало из
1
0
Форкнуть 0
- [x] update ospo-reusable-workflows version
  - prevents auto-labeler creating draft releases
- [x] update permissions on release-image, allows for attestations, if enabled
- [x] update semver
  - feature -> minor
  - fix -> patch

Signed-off-by: jmeridth <jmeridth@gmail.com>
This commit is contained in:
jmeridth 2025-01-27 18:28:20 -06:00
Родитель d0e5fd0477
Коммит e0a82b426d
Не найден ключ, соответствующий данной подписи
4 изменённых файлов: 11 добавлений и 10 удалений

3
.github/release-drafter.yml поставляемый
Просмотреть файл

@ -36,11 +36,12 @@ version-resolver:
minor:
labels:
- "enhancement"
- "fix"
- "feature"
- "minor"
patch:
labels:
- "documentation"
- "fix"
- "maintenance"
- "patch"
default: patch

4
.github/workflows/auto-labeler.yml поставляемый
Просмотреть файл

@ -9,9 +9,9 @@ permissions:
jobs:
main:
permissions:
contents: write
contents: read
pull-requests: write
uses: github/ospo-reusable-workflows/.github/workflows/auto-labeler.yaml@1406afbf7a795f706f04644059cecbb3b2f0c1a0
uses: github/ospo-reusable-workflows/.github/workflows/auto-labeler.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
with:
config-name: release-drafter.yml
secrets:

2
.github/workflows/pr-title.yml поставляемый
Просмотреть файл

@ -12,6 +12,6 @@ jobs:
contents: read
pull-requests: read
statuses: write
uses: github/ospo-reusable-workflows/.github/workflows/pr-title.yaml@1406afbf7a795f706f04644059cecbb3b2f0c1a0
uses: github/ospo-reusable-workflows/.github/workflows/pr-title.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

12
.github/workflows/release.yml поставляемый
Просмотреть файл

@ -12,7 +12,7 @@ jobs:
permissions:
contents: write
pull-requests: read
uses: github/ospo-reusable-workflows/.github/workflows/release.yaml@53a9c808122ffaae9af948f72139fb4bd44ab74c
uses: github/ospo-reusable-workflows/.github/workflows/release.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
with:
publish: true
release-config-name: release-drafter.yml
@ -21,11 +21,11 @@ jobs:
release_image:
needs: release
permissions:
contents: write
discussions: write
contents: read
packages: write
pull-requests: read
uses: github/ospo-reusable-workflows/.github/workflows/release-image.yaml@53a9c808122ffaae9af948f72139fb4bd44ab74c
id-token: write
attestations: write
uses: github/ospo-reusable-workflows/.github/workflows/release-image.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
with:
image-name: ${{ github.repository }}
full-tag: ${{ needs.release.outputs.full-tag }}
@ -40,7 +40,7 @@ jobs:
permissions:
contents: read
discussions: write
uses: github/ospo-reusable-workflows/.github/workflows/release-discussion.yaml@53a9c808122ffaae9af948f72139fb4bd44ab74c
uses: github/ospo-reusable-workflows/.github/workflows/release-discussion.yaml@6a0a6d0de2227f9d5d11af90a87b2e2fd6b5463d
with:
full-tag: ${{ needs.release.outputs.full-tag }}
body: ${{ needs.release.outputs.body }}