Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ updates:
copier-actions:
patterns:
- "*"
cooldown:
default-days: 7
6 changes: 4 additions & 2 deletions .github/workflows/ci-copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ jobs:
git commit -m "Create pixi.lock"
# Push the generated package's HEAD commit to a `ci/*` branch
cid=$(git rev-parse HEAD)
git push -f "${GITHUB_SERVER_URL/https:\/\//git@}:$GITHUB_REPOSITORY" $cid:refs/heads/${{ steps.branch.outputs.name }}
git push -f "${GITHUB_SERVER_URL/https:\/\//git@}:$GITHUB_REPOSITORY" $cid:refs/heads/${STEPS_BRANCH_OUTPUTS_NAME}
# Use the GitHub API to wait for the generated package's CI to complete (success or failure).
# We look for a GitHub Actions run for the HEAD commit ID.
WORKFLOW_URL="$GITHUB_API_URL/repos/${GITHUB_REPOSITORY}/actions/runs?branch=${{ steps.branch.outputs.name }}&head_sha=${cid}"
WORKFLOW_URL="$GITHUB_API_URL/repos/${GITHUB_REPOSITORY}/actions/runs?branch=${STEPS_BRANCH_OUTPUTS_NAME}&head_sha=${cid}"
echo "Waiting for inner CI to start"
while (( $(curl -Ls --header "$AUTH" "$WORKFLOW_URL" | jq -r ".workflow_runs | length") < 1 )); do
sleep 10
Expand All @@ -108,6 +108,8 @@ jobs:
echo "CI pipeline failed"
exit 1
fi
env:
STEPS_BRANCH_OUTPUTS_NAME: ${{ steps.branch.outputs.name }}
- name: Clean up CI branch
if: always()
run: |
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ repos:
language: system
types: [text]
require_serial: true
# zizmor
- id: zizmor
name: zizmor
entry: pixi run -e lint zizmor --no-progress --min-severity high --fix .
language: system
types: [yaml]
pass_filenames: false
49 changes: 49 additions & 0 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ prettier = "*"
taplo = "*"
pre-commit-hooks = "*"
typos = "*"
zizmor = "*"
[feature.lint.tasks]
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run -a"
Expand Down
2 changes: 2 additions & 0 deletions template/.github/dependabot.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ updates:
gh-actions:
patterns:
- "*"
cooldown:
default-days: 7
7 changes: 7 additions & 0 deletions template/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,10 @@ repos:
language: system
types: [text]
require_serial: true
# zizmor
- id: zizmor
name: zizmor
entry: pixi run -e lint zizmor --no-progress --min-severity high --fix .
language: system
types: [yaml]
pass_filenames: false
1 change: 1 addition & 0 deletions template/pixi.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ prettier = "*"
taplo = "*"
pre-commit-hooks = "*"
typos = "*"
zizmor = "*"
[feature.lint.tasks]
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run -a"
Expand Down