Skip to content

Commit

Permalink
chore: fix broken release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed May 31, 2023
1 parent d760848 commit 7517e64
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,18 @@ project.release?.addJobs({
permissions: {},
steps: [
{
name: "Get the latest tag (version) from git",
id: "git_label",
run: 'echo "version=$(git describe --tags)" >> $GITHUB_OUTPUT',
},
{
name: "Notify Slack via a custom Workflow webhook",
uses: "slackapi/slack-github-action@v1",
env: { SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}" },
with: {
payload: JSON.stringify({
repository: repoName,
version: "${{ git describe --tags }}",
version: "${{ steps.git_label.outputs.version }}",
}),
},
},
Expand Down

0 comments on commit 7517e64

Please sign in to comment.