From 7bc907bae6d01569e46e61e63e7fdd89413520d8 Mon Sep 17 00:00:00 2001 From: Price Date: Fri, 26 Jan 2024 15:12:31 -0500 Subject: [PATCH] Update workflow scripts --- .github/workflows/commit-bitmap.yml | 12 +++++++----- .github/workflows/pull-request.yml | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/commit-bitmap.yml b/.github/workflows/commit-bitmap.yml index bb41117..b825a0c 100644 --- a/.github/workflows/commit-bitmap.yml +++ b/.github/workflows/commit-bitmap.yml @@ -1,10 +1,12 @@ -name: Bit Commit Bitmap +name: Tag and Export and Commit Bitmap on: - workflow_dispatch: -permissions: - contents: write + pull_request: + branches: + - main + types: [closed] jobs: release: + if: ${{ github.event.pull_request.merged }} runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -18,5 +20,5 @@ jobs: uses: bit-tasks/init@v1 - name: Bit Tag and Export uses: bit-tasks/tag-export@v1 - - name: Commit Bitmap + - name: Bit Commit Bitmap uses: bit-tasks/commit-bitmap@v1 \ No newline at end of file diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 33b6588..91e28ac 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -18,6 +18,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - name: Initialize Bit - uses: bit-tasks/init@v1 + uses: bit-tasks/init@v1 - name: Bit Pull Request uses: bit-tasks/pull-request@v1 \ No newline at end of file