-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (46 loc) · 1.34 KB
/
on_master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: on master
on:
push:
branches:
- master
jobs:
on_master:
runs-on: ubuntu-latest
name: Update Notion property
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Commit dist files
continue-on-error: true
run: |
git config --local user.email "[email protected]"
git config --local user.name "szenius"
git add ./dist
git commit -m "build: update dist files"
- name: Push changes
continue-on-error: true
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_ACCESS_TOKEN }}
force: true
- name: Bump version and push tag
id: version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
WITH_V: false
RELEASE_BRANCHES: master
DEFAULT_BUMP: patch
INITIAL_VERSION: 1.1.2
- name: Update Notion property
uses: ./
with:
gh-username: "szenius"
gh-token: ${{ secrets.GH_ACCESS_TOKEN }}
notion-key: ${{ secrets.NOTION_KEY }}
notion-property-name: "Version Tag"
notion-update-value: "${{ steps.version.outputs.new_tag }}"