Skip to content

Commit 36243eb

Browse files
committed
fix: update action.yaml to use new python code
1 parent 4fccebd commit 36243eb

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

action.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,17 @@ inputs:
66
description: "Target branch for the pull request"
77
required: true
88
default: "main"
9-
tool: # for now only pixi, but good to make others possible from the start
10-
description: "Which tool you use for managing your environment."
9+
project_file_name:
10+
description: "The filename to the project file that lists your dependencies, relative to the repository root. Defaults to 'pyproject.toml' Curretnly only pyproject.toml is supported but others may be added."
1111
required: true
12-
default: "pixi"
12+
default: "pyproject.toml"
1313
token:
1414
description: "GitHub token with repo permissions to create pull requests"
1515
required: true
1616

1717
runs:
1818
using: "composite"
1919
steps:
20-
- name: Validate tool input
21-
shell: bash
22-
run: |
23-
if [[ "${{ inputs.tool }}" != "pixi" ]]; then
24-
echo "❌ Invalid tool: '${{ inputs.tool }}'"
25-
echo "Accepted values are: 'pixi'"
26-
exit 1
27-
fi
2820
- name: Checkout code
2921
uses: actions/checkout@v4
3022
with:
@@ -42,16 +34,19 @@ runs:
4234

4335
# make user pixi is available
4436
- uses: prefix-dev/setup-pixi@v0.8.14
45-
if: ${{ inputs.tool == 'pixi' }}
4637
name: Setup pixi
4738
with:
39+
environments: >-
40+
update
41+
activate-environment: update
4842
pixi-version: v0.49.0
43+
manifest-path: ${{github.action_path}}/pyproject.toml
4944

50-
- name: Update Pixi dependencies
51-
if: ${{ inputs.tool == 'pixi' }}
45+
- name: Run Update script
5246
shell: bash
5347
run: |
54-
"${{ github.action_path }}/update_pixi.sh"
48+
python ${{github.action_path}}/update.py "${{github.workspace}}/${{inputs.project_file_path}}"
49+
5550
5651
- name: Create Pull Request
5752
uses: peter-evans/create-pull-request@v6

0 commit comments

Comments
 (0)