Skip to content

Give all bottomsheets the same background color for FUN theme (KIDS-1169) #1204

Give all bottomsheets the same background color for FUN theme (KIDS-1169)

Give all bottomsheets the same background color for FUN theme (KIDS-1169) #1204

Workflow file for this run

name: Release Drafter
on:
# Push for release
push:
branches:
- main
# Pull Request for auto assigning labels
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get version
id: yq
uses: mikefarah/yq@master
with:
cmd: yq -r '.version' 'pubspec.yaml'
# Drafts next Release notes as Pull Requests are merged into "main"
- name: Write Release Notes
uses: release-drafter/release-drafter@v6
with:
version: ${{ steps.yq.outputs.result }}
commitish: main
publish: ${{ github.ref == 'refs/heads/main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Set current date as env variable"
if: ${{ github.ref == 'refs/heads/main' }}
run: |
echo "builddate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
id: version # this is used on variable path
# Post slack message for new release
- name: Slack Notification
if: ${{ github.ref == 'refs/heads/main' }}
uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "New release of the Givt app :sparkles::tada:",
"emoji": true
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Version:*\n${{ steps.yq.outputs.result }}"
},
{
"type": "mrkdwn",
"text": "*Release Date:*\n${{ steps.version.outputs.builddate }}"
},
{
"type": "mrkdwn",
"text": "*Made by:*\n${{ github.actor }}"
}
]
},
{
"type": "divider"
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View changelog :memo:",
"emoji": true
},
"style": "primary",
"url": "https://github.com/givtnl/givt-app/releases/tag/v${{ steps.yq.outputs.result }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASENOTES_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK