File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 tag : ${{ github.ref }}
4949 overwrite : true
5050 file_glob : true
51+
52+ - name : " Update Release Notes Action"
53+ if : ${{ github.event_name == 'release' }}
54+ continue-on-error : true
55+ uses : smashedr/update-release-notes-action@master
56+ with :
57+ type : generic
58+
59+ - name : " Package Changelog Action"
60+ if : ${{ github.event_name == 'release' }}
61+ continue-on-error : true
62+ uses : cssnr/package-changelog-action@v1
63+
64+ - name : " Send Failure Notification"
65+ if : ${{ failure() && github.event_name == 'release' }}
66+ uses : sarisia/actions-status-discord@v1
67+ with :
68+ webhook : ${{ secrets.DISCORD_WEBHOOK }}
Original file line number Diff line number Diff line change 1+ name : " Draft Release"
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : ["master"]
7+
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ draft :
14+ name : " Draft Release"
15+ runs-on : ubuntu-latest
16+ timeout-minutes : 5
17+ permissions :
18+ contents : write
19+
20+ steps :
21+ - name : " Checkout"
22+ uses : actions/checkout@v4
23+
24+ - name : " Draft Release Action"
25+ id : draft
26+ uses : cssnr/draft-release-action@master
27+ with :
28+ semver : patch
29+ prerelease : false
30+
31+ - name : " Process Release Draft URL"
32+ run : |
33+ echo "url: ${{ steps.draft.outputs.url }}"
Original file line number Diff line number Diff line change @@ -15,10 +15,14 @@ jobs:
1515 uses : actions/checkout@v4
1616
1717 - name : " Debug Issue"
18+ env :
19+ NUMBER : ${{ github.event.issue.number }}
20+ TITLE : ${{ github.event.issue.title }}
21+ BODY : ${{ github.event.issue.body }}
1822 run : |
19- echo Issue number: '${{ github.event.issue.number }}'
20- echo Issue title: '${{ github.event.issue.title }}'
21- echo Issue body: '${{ github.event.issue.body }}'
23+ echo Issue number: '${{ env.NUMBER }}'
24+ echo Issue title: '${{ env.TITLE }}'
25+ echo Issue body: '${{ env.BODY }}'
2226
2327 - name : " Setup Node 22"
2428 uses : actions/setup-node@v4
7579 GH_REPO : ${{ github.repository }}
7680 NUMBER : ${{ github.event.issue.number }}
7781 BODY : |
78- Link Extractor Results for: [${{ steps.issue.outputs.site_link }}](${{ steps.issue.outputs.site_link }})
82+ Link Extractor Results for: [${{ steps.issue.outputs.site_link }}](${{ steps.issue.outputs.site_link }})
7983
8084 
8185
Original file line number Diff line number Diff line change @@ -30,11 +30,37 @@ jobs:
3030 npm install
3131
3232 - name : " ESLint"
33- if : ${{ steps.install.outcome == 'success' }}
33+ if : ${{ !cancelled() }}
3434 run : |
3535 npm run lint
3636
3737 - name : " Prettier"
38- if : ${{ steps.install.outcome == 'success' }}
38+ if : ${{ !cancelled() }}
3939 run : |
4040 npm run prettier
41+
42+ - name : " Yamllint"
43+ if : ${{ !cancelled() }}
44+ env :
45+ CONFIG : " {extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
46+ run : |
47+ echo "::group::List Files"
48+ yamllint -d '${{ env.CONFIG }}' --list-files .
49+ echo "::endgroup::"
50+ yamllint -d '${{ env.CONFIG }}' .
51+
52+ - name : " Actionlint"
53+ if : ${{ !cancelled() }}
54+ run : |
55+ echo "::group::Download"
56+ loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
57+ echo "loc: ${loc}"
58+ tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
59+ echo "tag: ${tag}"
60+ url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
61+ echo "url: ${url}"
62+ curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
63+ file "${RUNNER_TEMP}/actionlint"
64+ "${RUNNER_TEMP}/actionlint" --version
65+ echo "::endgroup::"
66+ "${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
You can’t perform that action at this time.
0 commit comments