From 76ff1a79859ac9dc36a79ff03406ba2cde5d7fc1 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 19 Dec 2024 09:28:22 -0600 Subject: [PATCH] testing - remove merged + publishing --- .github/workflows/pre_release.yml | 108 +++++++++++++++--------------- .github/workflows/release.yml | 6 +- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/.github/workflows/pre_release.yml b/.github/workflows/pre_release.yml index 8a48c8e..9af59e8 100644 --- a/.github/workflows/pre_release.yml +++ b/.github/workflows/pre_release.yml @@ -376,57 +376,57 @@ jobs: run: | hatch run test:unit - merge-changes: - name: "Merge Changes Into ${{ github.ref }}" - runs-on: ubuntu-latest - needs: [run-unit-tests, create-temp-branch, audit-version-in-code, audit-changelog] - if: | - !failure() && !cancelled() && - inputs.test_run != true && - ( - needs.audit-changelog.outputs.exists == 'false' || - needs.audit-version-in-code.outputs.up_to_date == 'false' - ) - - steps: - - name: "[Debug] Print Variables" - run: | - echo branch_name: ${{ needs.create-temp-branch.outputs.branch_name }} - echo inputs.test_run: ${{ inputs.test_run }} - echo needs.audit-changelog.outputs.exists: ${{ needs.audit-changelog.outputs.exists }} - echo needs.audit-version-in-code.outputs.up_to_date: ${{ needs.audit-version-in-code.outputs.up_to_date }} - - - name: "Checkout Repo ${{ github.repository }}" - uses: actions/checkout@v4 - with: - ref: ${{ github.ref }} - token: ${{ secrets.FISHTOWN_BOT_PAT }} - - - name: "Set Git User" - run: | - git config user.name "Github Build Bot" - git config user.email "buildbot@fishtownanalytics.com" - - - name: "Merge in changes" - run: | - git fetch origin ${{ needs.create-temp-branch.outputs.branch_name }} - if ! git merge origin/${{ needs.create-temp-branch.outputs.branch_name }} --no-ff -m "Merge version bump and changelogs"; then - echo "::error::Merge failed" - exit 1 - fi - git push origin HEAD || { - echo "::error::Push failed" - exit 1 - } - - - name: "Delete Temp Branch" - env: - GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} - run: | - gh api -X DELETE repos/${{ github.repository }}/git/refs/heads/${{ needs.create-temp-branch.outputs.branch_name }} - - - name: "[Notification] Changes Merged" - run: | - title="Changelog and Version Bump Branch Merge" - message="The ${{ needs.create-temp-branch.outputs.branch_name }} branch was merged into ${{ github.ref }}" - echo "::notice title=${{ env.NOTIFICATION_PREFIX }}: $title::$message" + # merge-changes: + # name: "Merge Changes Into ${{ github.ref }}" + # runs-on: ubuntu-latest + # needs: [run-unit-tests, create-temp-branch, audit-version-in-code, audit-changelog] + # if: | + # !failure() && !cancelled() && + # inputs.test_run != true && + # ( + # needs.audit-changelog.outputs.exists == 'false' || + # needs.audit-version-in-code.outputs.up_to_date == 'false' + # ) + + # steps: + # - name: "[Debug] Print Variables" + # run: | + # echo branch_name: ${{ needs.create-temp-branch.outputs.branch_name }} + # echo inputs.test_run: ${{ inputs.test_run }} + # echo needs.audit-changelog.outputs.exists: ${{ needs.audit-changelog.outputs.exists }} + # echo needs.audit-version-in-code.outputs.up_to_date: ${{ needs.audit-version-in-code.outputs.up_to_date }} + + # - name: "Checkout Repo ${{ github.repository }}" + # uses: actions/checkout@v4 + # with: + # ref: ${{ github.ref }} + # token: ${{ secrets.FISHTOWN_BOT_PAT }} + + # - name: "Set Git User" + # run: | + # git config user.name "Github Build Bot" + # git config user.email "buildbot@fishtownanalytics.com" + + # - name: "Merge in changes" + # run: | + # git fetch origin ${{ needs.create-temp-branch.outputs.branch_name }} + # if ! git merge origin/${{ needs.create-temp-branch.outputs.branch_name }} --no-ff -m "Merge version bump and changelogs"; then + # echo "::error::Merge failed" + # exit 1 + # fi + # git push origin HEAD || { + # echo "::error::Push failed" + # exit 1 + # } + + # - name: "Delete Temp Branch" + # env: + # GH_TOKEN: ${{ secrets.FISHTOWN_BOT_PAT }} + # run: | + # gh api -X DELETE repos/${{ github.repository }}/git/refs/heads/${{ needs.create-temp-branch.outputs.branch_name }} + + # - name: "[Notification] Changes Merged" + # run: | + # title="Changelog and Version Bump Branch Merge" + # message="The ${{ needs.create-temp-branch.outputs.branch_name }} branch was merged into ${{ github.ref }}" + # echo "::notice title=${{ env.NOTIFICATION_PREFIX }}: $title::$message" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7efb9b5..14469e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,6 +71,6 @@ jobs: with: repository-url: https://test.pypi.org/legacy/ - - name: Publish artifacts to PyPI Prod - if: inputs.deploy-to == 'PypiProd' - uses: pypa/gh-action-pypi-publish@release/v1 + # - name: Publish artifacts to PyPI Prod + # if: inputs.deploy-to == 'PypiProd' + # uses: pypa/gh-action-pypi-publish@release/v1