Skip to content

Commit

Permalink
update jobs targets
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Bortnikov <[email protected]>
  • Loading branch information
aobort committed Jun 3, 2024
1 parent d7f5a81 commit 7404eff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Draft release

on:
pull_request_target:
push:
branches:
- main
Expand All @@ -13,11 +14,15 @@ jobs:
release-drafter:
name: Draft release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Draft release
uses: release-drafter/release-drafter@v6
with:
disable-releaser: github.ref != 'refs/heads/main'
config-name: release-drafter.yml
commitish: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 4 additions & 5 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ on:
- main
tags:
- v*
pull_request:

permissions:
contents: read
packages: write
pull_request_target:

jobs:
publish-docker:
name: Build and publish Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 7404eff

Please sign in to comment.