From 94a373f77975cc5368c55535bddde16f8a074288 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Thu, 14 Mar 2024 22:40:19 -0600 Subject: [PATCH] Fix PR workflows --- .github/workflows/docker-image.yml | 7 ++----- .github/workflows/pull-request.yml | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index bf9488e..b850d90 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,14 +1,11 @@ name: Publish Docker image on: - pull_request: - types: - closed + push: branches: - - 'main' + - main jobs: push_to_registry: - if: github.event.pull_request.merged == true name: Push Docker image to GitHub Packages runs-on: ubuntu-latest steps: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 3b75029..64ffbcb 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -39,4 +39,4 @@ jobs: run: gh pr merge --auto --rebase "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + GITHUB_TOKEN: ${{secrets.GH_TOKEN}}