-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.21 KB
/
upgrade.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
on:
workflow_dispatch:
inputs:
module:
required: true
description: Module to upgrade
type: string
workflow_call:
inputs:
module:
required: true
type: string
name: upgrade
jobs:
upgrade:
runs-on: ubuntu-latest
outputs:
committed: ${{ steps.commit.outputs.committed }}
env:
GITHUB_TOKEN: "${{ secrets.GH_ACTIONS }}"
steps:
# The logic below handles the npm publication:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_ACTIONS }}
repository: "javalent/obsidian-overload"
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- run: npm i ${{inputs.module}}@latest
- uses: EndBug/add-and-commit@v9
id: commit
with:
default_author: github_actions
message: "feat: Upgrading ${{ inputs.module }} to latest"
env:
GITHUB_TOKEN: "${{ secrets.GH_ACTIONS }}"