From c09a0a5ff2d072f98e45218437beabda635aef02 Mon Sep 17 00:00:00 2001 From: Julia Schumann Date: Thu, 3 Oct 2024 01:00:58 +0200 Subject: [PATCH] remove cruft workflow --- .github/workflows/cruft-update.yml | 75 ------------------------------ 1 file changed, 75 deletions(-) delete mode 100644 .github/workflows/cruft-update.yml diff --git a/.github/workflows/cruft-update.yml b/.github/workflows/cruft-update.yml deleted file mode 100644 index ace73a7..0000000 --- a/.github/workflows/cruft-update.yml +++ /dev/null @@ -1,75 +0,0 @@ -# /.github/workflows/cruft-update.yml -name: Update repository with Cruft -permissions: - contents: write - pull-requests: write -on: - schedule: - - cron: "0 14 * * 1" # Every Monday at 2pm (UTC time) - workflow_dispatch: -jobs: - update: - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - include: - - add-paths: . - body: Use this to merge the changes to this repository. - branch: cruft/update - commit-message: "chore: accept new Cruft update" - title: New updates detected with Cruft - - add-paths: .cruft.json - body: Use this to reject the changes in this repository. - branch: cruft/reject - commit-message: "chore: reject new Cruft update" - title: Reject new updates detected with Cruft - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - - name: Install Cruft - run: pip3 install cruft - - - name: Check if update is available - continue-on-error: false - id: check - run: | - CHANGES=0 - if [ -f .cruft.json ]; then - if ! cruft check; then - CHANGES=1 - fi - else - echo "No .cruft.json file" - fi - - echo "has_changes=$CHANGES" >> "$GITHUB_OUTPUT" - - - name: Run update if available - if: steps.check.outputs.has_changes == '1' - run: | - git config --global user.email "you@example.com" - git config --global user.name "GitHub" - - cruft update --skip-apply-ask --refresh-private-variables - git restore --staged . - - - name: Create pull request - if: steps.check.outputs.has_changes == '1' - uses: peter-evans/create-pull-request@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - add-paths: ${{ matrix.add-paths }} - commit-message: ${{ matrix.commit-message }} - branch: ${{ matrix.branch }} - delete-branch: true - branch-suffix: timestamp - title: ${{ matrix.title }} - body: | - This is an autogenerated PR. ${{ matrix.body }} - - [Cruft](https://cruft.github.io/cruft/) has detected updates from the Cookiecutter repository.