diff --git a/.github/workflows/Bleeding-Job.yaml b/.github/workflows/Bleeding-Job.yaml deleted file mode 100644 index 4889e85..0000000 --- a/.github/workflows/Bleeding-Job.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: Bleeding Update version - -on: - push: - branches: - - main - -jobs: - update-version: - runs-on: ubuntu-latest - - steps: - - name: Check out the repository - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - - name: Update version.json - run: | - git fetch --prune --unshallow - commit_count=$(git rev-list --count HEAD) - version=$(jq -r '.version' version.json) - jq --arg versionBleeding "$version-$commit_count" '. + {versionBleeding: $versionBleeding}' version.json > version.tmp && mv version.tmp version.json - - - name: Commit and push changes - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add version.json - git commit -m "Update version.json with commit count" - git push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}