Fix PR workflows

This commit is contained in:
William Brawner 2024-03-14 22:40:19 -06:00
parent e4e77c4df7
commit 94a373f779
2 changed files with 3 additions and 6 deletions

View file

@ -1,14 +1,11 @@
name: Publish Docker image name: Publish Docker image
on: on:
pull_request: push:
types:
closed
branches: branches:
- 'main' - main
jobs: jobs:
push_to_registry: push_to_registry:
if: github.event.pull_request.merged == true
name: Push Docker image to GitHub Packages name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View file

@ -39,4 +39,4 @@ jobs:
run: gh pr merge --auto --rebase "$PR_URL" run: gh pr merge --auto --rebase "$PR_URL"
env: env:
PR_URL: ${{github.event.pull_request.html_url}} PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_TOKEN: ${{secrets.GH_TOKEN}}