Skip to content

BUG: use hasattr to check instead #2

BUG: use hasattr to check instead

BUG: use hasattr to check instead #2

name: Update pixi.lock

Check failure on line 1 in .github/workflows/update-pixi-lock.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-pixi-lock.yml

Invalid workflow file

(Line: 37, Col: 7): Unexpected value 'permissions'
on:
schedule:
# 4:10 UTC every Sunday
- cron: "10 4 * * 0"
permissions: {}
defaults:
run:
shell: bash -euox pipefail {0}
jobs:
update_lock_file:
runs-on: ubuntu-24.04
if: github.repository_owner == 'pandas-dev'
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install Pixi
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
pixi-version: v0.66.0
log-level: vv
manifest-path: pixi.toml
run-install: false
- name: Generate lock files
id: check-lock-file
run: pixi update --no-install
# There should be an update since pixi.toml references nightly packages
# or use https://github.com/prefix-dev/pixi/issues/5813
- name: Create pull request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
permissions:
pull-requests: write
with:
commit-message: Update pixi.lock
# author same as default committer for this action
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
branch: "ci/update-pixi-lock"
delete-branch: true
title: "CI: Update pixi.lock"
body: |
Scheduled update by `.github/workflows/update-pixi-lock.yml`
If CI jobs fail, modify this pull request as needed.
labels: "CI"