Skip to content

ci/version-bump-build-workflow #1

ci/version-bump-build-workflow

ci/version-bump-build-workflow #1

Workflow file for this run

name: Version Bump and Build
on:
pull_request:
types: [closed]
branches: [main]
permissions:
contents: write
jobs:
bump:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.LIBREBOT_ACCESS_TOKEN }}
- name: Configure git as LibreBot
run: |
git config user.name "libretexts-bot"
git config user.email "dev@libretexts.org"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install bump-my-version
run: pip install bump-my-version
- name: Bump minor version
run: bump-my-version bump minor
- name: Capture new version
id: version
run: echo "value=$(bump-my-version show current_version)" >> "$GITHUB_OUTPUT"
build:

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

View workflow run for this annotation

GitHub Actions / Version Bump and Build

Invalid workflow file

The workflow is not valid. .github/workflows/version-bump.yml (Line: 36, Col: 3): Error calling workflow 'LibreTexts/molview-lambda-api/.github/workflows/docker.yml@32c5bb39cfd26e97b6298f6c521d5e745d1b8c69'. The workflow is requesting 'packages: write', but is only allowed 'packages: none'.
needs: bump
uses: ./.github/workflows/docker.yml
with:
version: ${{needs.bump.outputs.version}}
secrets: inherit