powerful-scooter-95162
09/02/2024, 1:57 AMpowerful-scooter-95162
09/02/2024, 3:33 AMwitty-agent-59418
09/02/2024, 6:59 AMpowerful-scooter-95162
09/02/2024, 3:13 PMpowerful-scooter-95162
09/03/2024, 4:48 PMname: Pants
on: push
permissions:
actions: read # Allows reading workflow runs
contents: read # Allows reading repository contents
statuses: read # Allows reading commit statuses
jobs:
build:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Find last green commit
id: find_commit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x ./tools/green.sh
./tools/green.sh
- name: Lint
run: |
pants --changed-since=${{ steps.find_commit.outputs.last_green_commit }} lint
And I have attached the shell scriptwitty-agent-59418
09/04/2024, 6:22 AM