Skip to content

Commit

Permalink
Fix PyOxidizer pinning (#231)
Browse files Browse the repository at this point in the history
* Desperate flailing

* yeah we need to persist credentials

* !?

* Add explanation

* Get rid of vars again

* Let's figure out the necessary permissions

* Add contents write permission

* No periods in names

* Allow opening pull requests
  • Loading branch information
hynek authored Feb 3, 2025
1 parent 5e37440 commit 2c8b35b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pin-for-pyoxidizer.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
name: Pin dependencies for oxidization.
name: Pin dependencies for oxidization

on:
workflow_dispatch:
schedule:
# Run every 1st of Month at 3:25 UTC
- cron: "25 3 1 * *"

permissions:
contents: write
pull-requests: write

jobs:
pin:
Expand All @@ -25,7 +28,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# We need to persist credentials to possibly push the branch later.
persist-credentials: true
- uses: actions/setup-python@v5
with:
# Keep in-sync with ./pyoxidizer.yml
Expand All @@ -44,8 +48,6 @@ jobs:
- name: Commit & push changes
# Only push if changes exist
if: steps.changes.outputs.count > 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email [email protected]
Expand Down

0 comments on commit 2c8b35b

Please sign in to comment.