This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1030 from Esri/v.next
Release 100.10
- Loading branch information
Showing
668 changed files
with
9,706 additions
and
4,228 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# The name of the job, which will be displayed for the status check in PR. | ||
name: README and metadata formatting | ||
|
||
# Controls when the action will run. | ||
# Below triggers the workflow on pull requests to `master` or `v.next` branch. | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- v.next | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or | ||
# in parallel. | ||
jobs: | ||
# This workflow contains a single job called "changes" | ||
changes: | ||
name: Check README and metadata format for changed files | ||
|
||
# Comment out the line below if the job is only running for certain labels. | ||
# i.e. only run the job on PRs with label "new-sample" | ||
|
||
# if: contains(github.event.pull_request.labels.*.name, 'new-sample') | ||
|
||
# The type of runner that the job will run on | ||
# supported VMs are here: https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-runners-and-hardware-resources | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that got executed as part of the job. | ||
steps: | ||
|
||
# This step gets the paths to all changed files and returns an array | ||
# such as ['xxx/README.md', 'xxx/README.metadata.json', 'xxx/1.png'] | ||
# https://github.com/trilom/file-changes-action | ||
- id: file_changes | ||
name: Detect changed file paths | ||
uses: trilom/file-changes-action@master | ||
|
||
# Checks-out your repository under $GITHUB_WORKSPACE, so the workflow can | ||
# access the files. | ||
# https://github.com/actions/checkout | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
|
||
# Print out changed file paths for debugging purposes. | ||
- name: Print changed file paths | ||
run: | | ||
echo 'Below shows a list of changed file paths' | ||
echo '${{ steps.file_changes.outputs.files}}' | ||
# echo '${{ steps.file_changes.outputs.files_modified}}' | ||
# echo '${{ steps.file_changes.outputs.files_added}}' | ||
# echo '${{ steps.file_changes.outputs.files_removed}}' | ||
|
||
- name: Run style checks | ||
uses: ./Scripts/CI/README_Metadata_StyleCheck | ||
with: | ||
FILE_PATHS: ${{ steps.file_changes.outputs.files }} | ||
|
||
# Runs a single command using the runners shell | ||
# - name: Run a script with Python | ||
# run: python ./Scripts/README-formatter.py |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM alpine:3.12 | ||
MAINTAINER Ting Chen <[email protected]> | ||
ENV PYTHONUNBUFFERED=1 | ||
# Add scripts for the check. | ||
ADD entry.py /entry.py | ||
ADD style.rb /style.rb | ||
ADD description_differ.py /description_differ.py | ||
ADD metadata_style_checker.py /metadata_style_checker.py | ||
ADD README_style_checker.py /README_style_checker.py | ||
ADD title_differ.py /title_differ.py | ||
# Install dependencies. | ||
RUN echo "**** Install Ruby and mdl ****" && \ | ||
apk add --update --no-cache ruby-full && \ | ||
gem install mdl --no-document && \ | ||
echo "**** Install Python ****" && \ | ||
apk add --no-cache python3 && \ | ||
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi | ||
ENTRYPOINT ["python3", "/entry.py"] |
Oops, something went wrong.