File tree Expand file tree Collapse file tree 3 files changed +117
-0
lines changed
Expand file tree Collapse file tree 3 files changed +117
-0
lines changed Original file line number Diff line number Diff line change 1+ name : conventional-commits
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - reopened
8+ - edited
9+ - synchronize
10+
11+ permissions :
12+ contents : read
13+ id-token : write
14+ packages : read
15+ pull-requests : write
16+ statuses : write
17+
18+ jobs :
19+ pr-title :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v4
23+ - uses : amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017
24+ id : lint_pr_title
25+ env :
26+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27+ with :
28+ wip : true
29+ - uses : marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
30+ # Even if the lint_pr_title step fails, we should populate error message.
31+ if : always() && (steps.lint_pr_title.outputs.error_message != null)
32+ with :
33+ header : pr-title-lint
34+ message : |
35+ 👋🏼 Thank you for opening this pull request!
36+
37+ This repo requires all pull request titles to follow [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
38+
39+ ```
40+ ${{ steps.lint_pr_title.outputs.error_message }}
41+ ```
42+
43+ # Delete the comment when the issue has been resolved
44+ - if : ${{ steps.lint_pr_title.outputs.error_message == null }}
45+ uses : marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
46+ with :
47+ header : pr-title-lint
48+ delete : true
Original file line number Diff line number Diff line change 1+ name : dependabot
2+ on : pull_request
3+
4+ permissions :
5+ contents : write
6+ pull-requests : write
7+
8+ jobs :
9+ auto-approve :
10+ runs-on : ubuntu-latest
11+ if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'sethrylan/bayesian'
12+ steps :
13+ - name : Dependabot metadata
14+ id : metadata
15+ uses : dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
16+ with :
17+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
18+ - name : Enable auto-merge for Dependabot PRs
19+ if : steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
20+ run : gh pr merge --auto --merge "$PR_URL"
21+ env :
22+ PR_URL : ${{github.event.pull_request.html_url}}
23+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
24+ - name : Approve a PR
25+ run : gh pr review --approve "$PR_URL"
26+ env :
27+ PR_URL : ${{github.event.pull_request.html_url}}
28+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
29+
Original file line number Diff line number Diff line change 1+ name : deploy
2+
3+ on :
4+ push :
5+ branches : ['main']
6+ workflow_dispatch :
7+
8+ # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ # Allow one concurrent deployment
15+ concurrency :
16+ group : ' pages'
17+ cancel-in-progress : true
18+
19+ jobs :
20+ # Single deploy job since we're just deploying
21+ deploy :
22+ environment :
23+ name : github-pages
24+ url : ${{ steps.deployment.outputs.page_url }}
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v4
28+ - uses : actions/setup-node@v4
29+ with :
30+ node-version-file : package.json
31+ cache : ' npm'
32+ - run : npm ci
33+ - run : npm run build
34+ - uses : actions/configure-pages@v5
35+ - uses : actions/upload-pages-artifact@v3
36+ with :
37+ # Upload dist folder
38+ path : ' ./dist'
39+ - id : deployment
40+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments