Skip to content

Update first_party_sets.JSON to add acbj.com FPS #36

Update first_party_sets.JSON to add acbj.com FPS

Update first_party_sets.JSON to add acbj.com FPS #36

# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: FPS submission checks
on: [pull_request]
jobs:
PR-Actions:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.read_results.outputs.contents }}
steps:
- name: Gather files changed
uses: actions/checkout@v2
with:
fileOutput: "json"
- name: Get necessary libraries
run: pip install publicsuffix2
- name: Content check
id: check
run: python3 check_sites.py > results.txt
- name: Read the result
id: read_results
uses: andstor/file-reader-action@v1
with:
path: "results.txt"
- name: File contents
run: echo '${{ steps.read_results.outputs.contents }}'
- name: Create Comment
if: steps.read_results.outputs.contents != 'success'
run: |
echo "It appears you have failed some tests. Here are your results:" > message.txt
cat results.txt >> message.txt
- name: Comment if sucess
if: steps.read_results.outputs.contents == 'success'
run: echo "Looks like you've passed all of the checks!" >> message.txt
- name: Write Comment on PR
uses: mshick/add-pr-comment@v2
with:
message-path:
"message.txt"
- name: Fail or Succeed
if: steps.read_results.outputs.contents != 'success'
uses: actions/github-script@v3
with:
script: |
core.setFailed('This run has failed. Check `File Contents` to see why.')