Skip to content

Create lint-job.yml

Create lint-job.yml #7

Workflow file for this run

name: 'Bump Version'
on:
pull_request:
branches:
- main
types:
- closed
permissions:
contents: write
jobs:
run-linter-job:

Check failure on line 11 in .github/workflows/bump-version.yml

View workflow run for this annotation

GitHub Actions / Bump Version

Invalid workflow file

The workflow is not valid. .github/workflows/bump-version.yml (Line: 11, Col: 3): Error calling workflow 'omnicalculator/omnicalculator-eslint-config/.github/workflows/lint-job.yml@187ea6bfd3aca080773300e549ca1e2e73ed43f8'. The workflow is requesting 'checks: write', but is only allowed 'checks: none'.
uses: ./.github/workflows/lint-job.yml
if: github.event.pull_request.merged == true
with:
branch_name: ${{ github.head_ref }}
merge_pr:
name: 'Bump Version'
needs: run-linter-job
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACCOUNT_WITH_FORCE_PUSH_PERMISSION_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.12
cache: 'pnpm'
- name: Git config
run: |
git config --global user.email "${{ secrets.ACCOUNT_WITH_FORCE_PUSH_PERMISSION_EMAIL }}"
git config --global user.name "${{ secrets.ACCOUNT_WITH_FORCE_PUSH_PERMISSION_NAME }}"
- name: Apply version bump (major)
if: contains(github.event.pull_request.labels.*.name, 'major')
run: pnpm version major
- name: Apply version bump (minor)
if: contains(github.event.pull_request.labels.*.name, 'minor')
run: pnpm version minor
- name: Apply version bump (patch)
if: contains(github.event.pull_request.labels.*.name, 'patch')
run: pnpm version patch
- name: Git push version bump
run: git push origin main --follow-tags --force