mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-30 14:44:32 +02:00
clean older workflows
This commit is contained in:
parent
a299cb0882
commit
04a187d758
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -6,6 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
permissions: write-all
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -61,6 +62,12 @@ jobs:
|
|||||||
echo "SHOULD_BUILD=0" >> $GITHUB_OUTPUT
|
echo "SHOULD_BUILD=0" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Clear older runs
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
gh run list -L400 --json databaseId -q '.[].databaseId' | tail -n+10 | xargs -IID gh api "repos/$(gh repo view --json nameWithOwner -q .nameWithOwner)/actions/runs/ID" -X DELETE || :
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
SHOULD_BUILD: ${{ steps.should_build.outputs.SHOULD_BUILD }}
|
SHOULD_BUILD: ${{ steps.should_build.outputs.SHOULD_BUILD }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user