From ed0904769959995b51a6442584acf42fb769929f Mon Sep 17 00:00:00 2001 From: Bikouo Aubin <79859644+abikouo@users.noreply.github.com> Date: Fri, 7 Apr 2023 16:57:14 +0200 Subject: [PATCH] remove changelog auto update (#610) remove changelog auto update Revert workflow --- .github/workflows/add_changelog.yml | 80 ----------------------------- 1 file changed, 80 deletions(-) delete mode 100644 .github/workflows/add_changelog.yml diff --git a/.github/workflows/add_changelog.yml b/.github/workflows/add_changelog.yml deleted file mode 100644 index e88dd570..00000000 --- a/.github/workflows/add_changelog.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: add changelog / black formatting -concurrency: - group: ${{ github.head_ref }} - cancel-in-progress: true - -on: - pull_request: - types: - - opened - - reopened - - labeled - - unlabeled - - synchronize - branches: - - main - - stable-* - tags: - - '*' - -jobs: - update: - if: "!contains(github.event.pull_request.labels.*.name, 'skip-changelog')" - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: checkout fork - uses: actions/checkout@v3 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.head_ref }} - fetch-depth: "0" - - - name: Set up Python '3.9' - uses: actions/setup-python@v4 - with: - python-version: '3.9' - - # black should be defined as input parameter of the action - - name: Install python dependencies - run: | - pip install -U pyyaml pygithub tox - shell: bash - - - name: Download script - run: >- - curl -o /tmp/add_changelog.py - https://raw.githubusercontent.com/abikouo/gha_testing/main/tools/add_changelog.py - - - name: Validate or add pull request changelog - run: - python3 /tmp/add_changelog.py - env: - PR_REPOSITORY: ${{ github.repository }} - PR_NUMBER: ${{ github.event.pull_request.number }} - - - name: Run black check - id: black_check - continue-on-error: true - run: | - tox -e black -vv 2>/tmp/black_check.txt - shell: bash - - - name: Run black formatting - run: | - tox -e black_format -vv -- $(grep "would reformat" /tmp/black_check.txt | cut -d ' ' -f3 | tr '\n' ' ') - shell: bash - if: steps.black_check.outcome != 'success' - - - name: (debug only) list files in diff - run: | - git status - shell: bash - if: steps.black_check.outcome != 'success' - - - name: commit and push changes - id: commit - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "automated changes for changelog and/or black formatting"