Merge branch '3046-plg-cloud' of https://github.com/raft-tech/TANF-ap… #710
Workflow file for this run
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
########################################################################### | |
# GitHub Action Workflow | |
# On push to any branch, triggers the front end build and test pipeline | |
# if the tdrs-frontend has changed. | |
# | |
# Step 0: make changes on your branch to non-documentation files in | |
# tdrs-frontend and push changes to your remote branch | |
# | |
# Step 1: Makes a request to the V2 CircleCI API to initiate the project, | |
# which will filter based upon build_and_test_frontend | |
# to run the workflow/jobs listed here: | |
# build-and-test:[ | |
# test-frontend, | |
# test-e2e | |
# ] | |
# | |
# Leverages the open source GitHub Action: | |
# https://github.com/promiseofcake/circleci-trigger-action | |
########################################################################### | |
name: Build Only Frontend When tdrs-frontend Files Change | |
on: | |
push: | |
paths: 'tdrs-frontend/**' | |
branches-ignore: | |
- develop | |
- main | |
- master | |
jobs: | |
build_and_test_frontend: | |
runs-on: ubuntu-latest | |
name: Build and Test Frontend | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Circle CI Deployment Trigger | |
id: curl-circle-ci | |
uses: promiseofcake/circleci-trigger-action@v1 | |
with: | |
user-token: ${{ secrets.CIRCLE_CI_V2_TOKEN }} | |
project-slug: ${{ github.repository }} | |
branch: ${{ github.ref_name }} | |
payload: '{ | |
"build_and_test_frontend": true, | |
"triggered": true | |
}' |