Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/release-notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2026 Enactic, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

changelog:
exclude:
authors:
- dependabot[bot]
categories:
- title: "Highlights"
labels:
- "important"
- title: "Other Changes"
labels:
- "*"
29 changes: 29 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,32 @@ jobs:
mkdir -p dist
mv openarm_can-*.tar.gz dist/
- uses: pypa/gh-action-pypi-publish@release/v1
notification:
name: Notification
if: github.ref_type == 'tag'
needs:
- pypi
- release
runs-on: ubuntu-latest
steps:
- name: Post to Discord
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GH_TOKEN: ${{ github.token }}
run: |
gh api "repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
--raw-field tag_name="${GITHUB_REF_NAME}" \
--raw-field configuration_file_path=.github/release-notification.yml \
--jq .body |
sed 's/<!--[^>]*-->//g' |
tee content.md

echo "## Help and Feedback" | tee -a content.md
echo "If you have any CAN related problems or improvements, please file them to https://github.com/enactic/openarm_can/issues and/or https://github.com/enactic/openarm_can/pulls !" | tee -a content.md

curl --request POST "${DISCORD_WEBHOOK_URL}" \
--header "Content-Type: application/json" \
--data "$(jq --null-input \
--arg thread_name "OpenArm CAN ${VERSION}" \
--arg content "$(cat content.md)" \
'{thread_name: $thread_name, content: $content}')"
Loading