I'm new to GitHub actions and am currently using https://github.com/foo-software/lighthouse-check-action to have audits done automatically. But since the urls
have to be hard-coded in, it doesn't prove that useful when wanting to audit only the modified pages in a commit and failing based off of those.
In the case that I am totally missing something, is there a way to achieve the above? I was looking at some actions like https://github.com/marketplace/actions/get-changed-files but I can't get it to work. I also looked at the GitHub events and references docs and was unable to figure out something with those. Would someone point me in the right direction?
Thank you in advance for your help!
lots0logs/gh-action-get-changed-files action is broken atm due to this bug. Take a look at jitterbit/get-changed-files action. It works perfectly for me:
name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: jitterbit/get-changed-files@v1
id: abc
with:
format: space-delimited
token: ${{ secrets.GITHUB_TOKEN }}
- name: Printing
run: |
echo "All:"
echo "${{ steps.abc.outputs.all }}"
echo "Added:"
echo "${{ steps.abc.outputs.added }}"
echo "Removed:"
echo "${{ steps.abc.outputs.removed }}"
echo "Renamed:"
echo "${{ steps.abc.outputs.renamed }}"
echo "Modified:"
echo "${{ steps.abc.outputs.modified }}"
echo "Added+Modified:"
echo "${{ steps.abc.outputs.added_modified }}"
2020-05-15T13:47:15.5267496Z All:
2020-05-15T13:47:15.5268424Z .github/workflows/test.yml .tidy-renamed2 Test.ts hello.py
2020-05-15T13:47:15.5268537Z Added:
2020-05-15T13:47:15.5268609Z hello.py
2020-05-15T13:47:15.5268697Z Removed:
2020-05-15T13:47:15.5268787Z Test.ts
2020-05-15T13:47:15.5268880Z Renamed:
2020-05-15T13:47:15.5269260Z .tidy-renamed2
2020-05-15T13:47:15.5269357Z Modified:
2020-05-15T13:47:15.5269450Z .github/workflows/test.yml
2020-05-15T13:47:15.5269547Z Added+Modified:
2020-05-15T13:47:15.5269625Z .github/workflows/test.yml hello.py
2020-05-15T13:47:15.5306656Z Post job cleanup.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With