Skip to content

Commit 095c557

Browse files
Add workflow_dispatch trigger and update permissions
1 parent 30a5676 commit 095c557

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
@@ -11,11 +12,12 @@ jobs:
1112
build:
1213
name: build
1314
runs-on: ubuntu-latest
14-
permissions:
15-
contents: write
15+
if: github.ref == 'refs/heads/main'
1616
steps:
1717
- name: Setup git config
1818
uses: actions/checkout@v6
19+
with:
20+
token: ${{ secrets.TIOBE_TOKEN }}
1921
- name: Build
2022
uses: actions/setup-node@v6
2123
with:

0 commit comments

Comments
 (0)