Merge pull request #608 from dukegaurav/main #203
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: Update Records | |
on: | |
push: | |
branches: [main] | |
jobs: | |
validation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Get Files | |
id: changed-files | |
uses: tj-actions/changed-files@v34 | |
with: | |
files: | | |
sub-logs/** | |
reserved/** | |
- name: Install Modules | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: yarn | |
- name: Publish Records | |
if: steps.changed-files.outputs.any_changed == 'true' | |
id: tests | |
run: yarn add-records | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
actions_path: ${{ github.workspace }} |