2222 id : current_time
2323 with :
2424 format : YYYYMMDD-HH
25- utcOffset : ' +01:00'
25+ utcOffset : " +01:00"
2626 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2727 # Checkout the repo
2828 - uses : actions/checkout@v3
6161 token : ${{ secrets.NPM_TOKEN }}
6262 tag : beta
6363 access : public
64- - name : Publish to Chromatic
65- id : chromatic_publish
66- uses : chromaui/action@v1
67- with :
68- token : ${{ secrets.GITHUB_TOKEN }}
69- projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
7064 - name : Create a release
7165 id : release
7266 uses : actions/create-release@v1
@@ -83,18 +77,18 @@ jobs:
8377 env :
8478 DISCORD_WEBHOOK : ${{secrets.DISCORD_WEBHOOK}}
8579 DISCORD_EMBEDS: '[{"author": {"icon_url": "https://avatars.githubusercontent.com/${{ github.actor }}", "name": "${{ github.actor }}", "url": "https://github.com/${{github.actor}}"}, "url": "https://github.com/${{github.repository}}/commit/${{github.sha}}", "fields": [{ "name": "Commit Message", "value": "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}"},{"name": "Repository","value": "[${{github.event.repository.name}}](${{github.event.repository.clone_url}})","inline": true},{"name": "Branch","value": "[${{github.ref_name}}](https://github.com/${{github.repository}}/pull/${{github.ref_name}})","inline": true},{ "name": "Event", "value": "${{github.event_name}}", "inline": true },{"name": "Author","value": "[${{github.actor}}](https://github.com/${{github.actor}})","inline": true},{ "name": "Job", "value": "${{github.job}}", "inline": true },{ "name": "Version", "value": "v${{ steps.save_release_version.outputs.version }}", "inline": true},{"name": "","value": "🤖 [Github Action](https://github.com/${{ github.repository}}/actions/runs/${{ github.run_id}}) 📙 [Documentation](${{ steps.chromatic_publish.outputs.storybookUrl }}) 🎨 [Chromatic Tests](${{ steps.chromatic_publish.outputs.buildUrl }})"}],"color": 65280,"footer": { "text": "Published at ${{steps.current_time.outputs.readableTime}}" }}]'
86- DISCORD_AVATAR : ' https://github.com/qoretechnologies/reqore/blob/ae8ce24b7f0984340bf4e6835025d203d1741b3a/public/q-symbol-small.png?raw=true'
80+ DISCORD_AVATAR : " https://github.com/qoretechnologies/reqore/blob/ae8ce24b7f0984340bf4e6835025d203d1741b3a/public/q-symbol-small.png?raw=true"
8781 uses : Ilshidur/action-discord@0.3.2
8882 with :
89- args : ' :white_check_mark: ReQore beta v${{ steps.save_release_version.outputs.version }} successfuly released & published.'
83+ args : " :white_check_mark: ReQore beta v${{ steps.save_release_version.outputs.version }} successfuly released & published."
9084 if : success()
9185 # Notify discord if failure
9286 - name : Discord notification
9387 env :
9488 DISCORD_WEBHOOK : ${{secrets.DISCORD_WEBHOOK}}
9589 DISCORD_EMBEDS: '[{"author": {"icon_url": "https://avatars.githubusercontent.com/${{ github.actor }}", "name": "${{ github.actor }}", "url": "https://github.com/${{github.actor}}"}, "url": "https://github.com/${{github.repository}}/commit/${{github.sha}}", "fields": [{ "name": "Commit Message", "value": "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}"},{"name": "Repository","value": "[${{github.event.repository.name}}](${{github.event.repository.clone_url}})","inline": true},{"name": "Branch","value": "[${{github.ref_name}}](https://github.com/${{github.repository}}/pull/${{github.ref_name}})","inline": true},{ "name": "Event", "value": "${{github.event_name}}", "inline": true },{"name": "Author","value": "[${{github.actor}}](https://github.com/${{github.actor}})","inline": true},{ "name": "Job", "value": "${{github.job}}", "inline": true },{ "name": "Version", "value": "v${{ steps.save_release_version.outputs.version }}", "inline": true},{"name": "","value": "🤖 [Github Action](https://github.com/${{ github.repository}}/actions/runs/${{ github.run_id}})"}],"color": 16711680,"footer": { "text": "Triggered at ${{steps.current_time.outputs.readableTime}}" }}]'
96- DISCORD_AVATAR : ' https://github.com/qoretechnologies/reqore/blob/ae8ce24b7f0984340bf4e6835025d203d1741b3a/public/q-symbol-small.png?raw=true'
90+ DISCORD_AVATAR : " https://github.com/qoretechnologies/reqore/blob/ae8ce24b7f0984340bf4e6835025d203d1741b3a/public/q-symbol-small.png?raw=true"
9791 uses : Ilshidur/action-discord@0.3.2
9892 with :
99- args : ' :exclamation: ReQore beta v${{ steps.save_release_version.outputs.version }} release failed! Click the GitHub Action link below to find out why.'
93+ args : " :exclamation: ReQore beta v${{ steps.save_release_version.outputs.version }} release failed! Click the GitHub Action link below to find out why."
10094 if : failure()
0 commit comments