Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

try with file

+9 -2
+9 -2
.github/workflows/deployment.yaml
··· 168 168 file: docs/CHANGELOG.md 169 169 pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }} 170 170 171 + - name: Extract and modify changelog 172 + id: modify_changelog 173 + run: echo "${{ steps.extract-changelog.outputs.markdown }}" | sed '1d' > modified_changelog.txt 174 + - name: Read modified changelog 175 + id: read_modified_changelog 176 + run: echo "changelog=$(cat modified_changelog.txt)" >> $GITHUB_ENV 177 + 171 178 - uses: ncipollo/release-action@v1 172 179 id: create_release 173 180 with: 174 181 tag: ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }} 175 182 makeLatest: true 176 - body: $(echo "${{ steps.extract-changelog.outputs.markdown }}" | sed '1d') 183 + body: ${{ env.changelog }} 177 184 178 185 - name: Discord notification 179 186 env: 180 187 DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} 181 188 uses: Ilshidur/action-discord@0.3.2 182 189 with: 183 - args: "# ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }}\n\n$(echo '${{ steps.extract-changelog.outputs.markdown }}' | sed '1d')" 190 + args: "# ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }}\n\n${{ env.changelog }}"