File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 3838 fi
3939
4040 VERSION=${VERSION#v}
41+ echo "VERSION=$VERSION" >> $GITHUB_ENV
4142 python tools/update_version.py $VERSION
4243 - name : Build and publish
4344 env :
4647 run : |
4748 python setup.py sdist bdist_wheel
4849 twine upload dist/*
50+
51+ - name : Create GitHub Issue on Failure
52+ if : failure()
53+ uses : actions/github-script@v7
54+ with :
55+ script : |
56+ const { owner, repo } = context.repo;
57+ const version = process.env.VERSION;
58+ const issueTitle = `Release job for ${version} failed`;
59+ const issueBody = `The release job failed. Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details.`;
60+ const assignees = [context.actor];
61+
62+ await github.rest.issues.create({
63+ owner,
64+ repo,
65+ title: issueTitle,
66+ body: issueBody,
67+ assignees
68+ });
You can’t perform that action at this time.
0 commit comments