From 89a941aa12dbd0032a50eb8ecb871d15183f46e3 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Fri, 18 Jun 2021 21:20:51 +0000 Subject: [PATCH] Delete 5 month old FF branches --- .github/workflows/delete-ff-branch.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/delete-ff-branch.yml diff --git a/.github/workflows/delete-ff-branch.yml b/.github/workflows/delete-ff-branch.yml new file mode 100644 index 00000000..952a4fcc --- /dev/null +++ b/.github/workflows/delete-ff-branch.yml @@ -0,0 +1,19 @@ +name: Remove old FF Branch +on: + schedule: + - cron: '0 0 23 * *' +jobs: + create_ff_branch: + name: Delete Feature Freeze Branch + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - id: date + run: echo "::set-output name=date::$(date -d '5 month ago' +'%Y.%m.01')" + + - uses: dawidd6/action-delete-branch@v3 + with: + branches: ${{ steps.date.outputs.date }} + github_token: ${{ github.token }}