fix: correct actionlint install dir as positional arg #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm ci | |
| - name: Install actionlint | |
| run: curl -sSf https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash | bash -s -- latest /usr/local/bin | |
| - run: npm run lint | |
| - name: Inject version into HTML | |
| env: | |
| VERSION: ${{ github.ref_name }} | |
| run: sed -i "s/__VERSION__/${VERSION}/g" Candidate_Risk_Dashboard.html | |
| - name: Package release zip | |
| env: | |
| VERSION: ${{ github.ref_name }} | |
| run: zip "candidate-risk-${VERSION}.zip" Candidate_Risk_Dashboard.html | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| Candidate_Risk_Dashboard.html | |
| candidate-risk-*.zip | |
| generate_release_notes: true |