Skip to content
Merged
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
13 changes: 10 additions & 3 deletions .github/workflows/lockfile-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ permissions: {}
jobs:
refresh:
name: Refresh lockfile
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 15
concurrency:
group: lockfile-maintenance-${{ github.repository }}
cancel-in-progress: false
environment:
name: release
deployment: false
permissions:
contents: read

steps:
- name: Create release bot token
id: release-bot
Expand All @@ -38,12 +45,12 @@ jobs:
APP_SLUG: ${{ steps.release-bot.outputs.app-slug }}
run: |
set -euo pipefail
user_id="$(gh api "/users/${APP_SLUG}[bot]" --jq .id)"
user_id="$(gh api "/users/${APP_SLUG}%5Bbot%5D" --jq .id)"
if [[ ! "$user_id" =~ ^[0-9]+$ ]]; then
echo "failed to resolve numeric bot user id for ${APP_SLUG}[bot]" >&2
exit 1
fi
echo "user-id=${user_id}" >> "$GITHUB_OUTPUT"
echo "user_id=${user_id}" >> "$GITHUB_OUTPUT"

- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -62,7 +69,7 @@ jobs:
env:
GH_TOKEN: ${{ steps.release-bot.outputs.token }}
APP_SLUG: ${{ steps.release-bot.outputs.app-slug }}
BOT_USER_ID: ${{ steps.release-bot-identity.outputs.user-id }}
BOT_USER_ID: ${{ steps.release-bot-identity.outputs.user_id }}
run: |
set -euo pipefail
if git diff --quiet -- pnpm-lock.yaml; then
Expand Down