-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 938 Bytes
/
webhook.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
name: artifact_deployed
on:
# workflow_dispatch is mandatory, so that Artifactory can trigger
# the workflow through GitHub REST API.
workflow_dispatch:
# inputs are optional, they may be used to convey contextual data
# from the JFrog event to the workflow.
inputs:
artifact_path:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Print artifact_path
run: echo The path is ${{ inputs.artifact_path }}
- name: Checkout
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 0
- name: Update data
run: |
npm install --no-save | grep -v 'YN0013'
npm run data:update-time
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Scheduler
author_email: [email protected]
message: 'Update Time Now'