trigger_deployed #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |