Skip to content

Commit

Permalink
testing - remove merged + publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Dec 19, 2024
1 parent 7f0513f commit 76ff1a7
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 57 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
- 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 "[email protected]"

# - 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"
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 76ff1a7

Please sign in to comment.