Skip to content

Commit

Permalink
Revert debug_announce code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 22, 2024
1 parent 1e3d660 commit 1ed9e11
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/add_wurst_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ on:
description: "Announce on WurstForum (only works for backports)"
required: false
default: "false"
debug_announce:
description: "Do the announcement in dry run mode and nothing else"
required: false
default: "false"
distinct_id:
description: "Automatically set by the return-dispatch action (leave blank if running manually)"
required: false
Expand All @@ -33,7 +29,6 @@ permissions:
jobs:

update-post:
if: ${{ github.event.inputs.debug_announce == 'false' }}
runs-on: ubuntu-latest
steps:
- name: Echo distinct ID ${{ github.event.inputs.distinct_id }}
Expand Down Expand Up @@ -63,7 +58,7 @@ jobs:
announce:
runs-on: ubuntu-latest
needs: update-post
if: ${{ github.event.inputs.announce == 'true' && github.event.inputs.debug_announce == 'false' }}
if: ${{ github.event.inputs.announce == 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -86,27 +81,3 @@ jobs:
run: |
echo "Discussion ID: ${{ steps.announce.outputs.discussion_id }}" >> $GITHUB_STEP_SUMMARY
echo "Link: <https://wurstforum.net/d/${{ steps.announce.outputs.discussion_id }}>" >> $GITHUB_STEP_SUMMARY
debug_announce:
runs-on: ubuntu-latest
if: ${{ github.event.inputs.debug_announce == 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: _scripts/requirements.txt
- name: Install dependencies
run: |
pip install -r _scripts/requirements.txt
- name: Run announce_wurst_backport.py
id: announce
run: |
python _scripts/announce_wurst_backport.py "${{ github.event.inputs.wurst_version }}" "${{ github.event.inputs.mc_version }}" --dry-run
- name: Write summary
run: |
echo "Discussion ID: ${{ steps.announce.outputs.discussion_id }}" >> $GITHUB_STEP_SUMMARY
echo "Link: <https://wurstforum.net/d/${{ steps.announce.outputs.discussion_id }}>" >> $GITHUB_STEP_SUMMARY

0 comments on commit 1ed9e11

Please sign in to comment.