Skip to content

Commit

Permalink
feat!: remove discussion announcment (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Sep 19, 2024
1 parent cfcdef9 commit 9fb58c7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,20 @@ jobs:
id: setup-release
uses: LizardByte/setup-release-action@master # keep this on master, to prevent endless depandabot PRs
with:
fail_on_events_api_error: # PRs will fail if this is true
${{ github.event_name == 'pull_request' && 'false' || 'true' }}
# PRs will fail if this is true
fail_on_events_api_error: ${{ github.event_name == 'pull_request' && 'false' || 'true' }}
github_token: ${{ secrets.GITHUB_TOKEN }} # can use GITHUB_TOKEN for read-only access

- name: Set action variables
id: vars
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
discussion_category=tests
release_tag=pr-${{ github.event.pull_request.number }}-${{ github.run_id }}
else
discussion_category=announcements
release_tag=${{ steps.setup-release.outputs.release_tag }}
fi
# set outputs
echo "discussion_category=$discussion_category" >> $GITHUB_OUTPUT
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
- name: Run Action
Expand All @@ -54,7 +51,6 @@ jobs:
allowUpdates: false
artifacts: ''
body: ${{ steps.setup-release.outputs.release_body }}
discussionCategory: ${{ steps.vars.outputs.discussion_category }}
generateReleaseNotes: ${{ steps.setup-release.outputs.release_generate_release_notes }}
name: ${{ steps.vars.outputs.release_tag }}
prerelease: true
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ steps:
| body | The body of the release. | | `false` |
| deleteOtherPreReleases | Whether to delete other pre-releases. | `true` | `false` |
| deletePreReleaseTags | Whether to delete other pre-release tags. | `true` | `false` |
| discussionCategory | The category for the discussion. | `announcements` | `false` |
| generateReleaseNotes | Indicates if release notes should be automatically generated. | `true` | `false` |
| keepPreReleaseCount | The number of pre-releases to keep. | `2` | `false` |
| name | The version to create. | | `true` |
Expand Down
5 changes: 0 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ inputs:
description: 'Whether to delete other pre-releases tags.'
required: false
default: 'true'
discussionCategory:
description: 'The category of the discussion.'
required: false
default: 'announcements'
generateReleaseNotes:
description: 'Indicates if release notes should be automatically generated.'
required: false
Expand Down Expand Up @@ -71,7 +67,6 @@ runs:
artifacts: ${{ inputs.artifacts }}
body: ${{ inputs.body }}
commit: ${{ github.sha }}
discussionCategory: ${{ inputs.discussionCategory }}
generateReleaseNotes: ${{ inputs.generateReleaseNotes }}
name: ${{ inputs.name }}
prerelease: ${{ inputs.prerelease }}
Expand Down

0 comments on commit 9fb58c7

Please sign in to comment.