Skip to content

Commit

Permalink
update release notes, added direct disc reading
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jun 10, 2024
1 parent 4aeb358 commit b74ad6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/briefcase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -67,10 +69,10 @@ jobs:
poetry run briefcase package -i "${{ secrets.DEV_ID }}"
- name: Get commit messages
run: |
EXCLUDED_PATTERNS=$(echo "${{ env.EXCLUDED_MESSAGES }}" | sed ':a;N;$!ba;s/\n/|/g' | sed 's/|$//')
EXCLUDED_PATTERNS=$(echo "${{ env.EXCLUDED_MESSAGES }}" | tr '\n' '|' | sed 's/|$//')
MESSAGES=$(git log --pretty=format:"- [%h](https://github.com/${{ github.repository }}/commit/%H) %s" master ^release | grep -vE "$EXCLUDED_PATTERNS" | awk '!seen[$0]++')
FORMATTED_MESSAGES=$(echo "$MESSAGES" | jq -R -s '.' | jq -r 'join("\n")')
echo "messages=$(echo "$FORMATTED_MESSAGES" | jq -R -s '.')" >> $GITHUB_OUTPUT
FORMATTED_MESSAGES=$(echo "$MESSAGES" | jq -Rs '.')
echo "messages=$FORMATTED_MESSAGES" >> $GITHUB_OUTPUT
echo "FORMATTED_MESSAGES"
- name: Prepare Release Message
id: prepare_release_message
Expand Down

0 comments on commit b74ad6f

Please sign in to comment.