Repository navigation
Automatically update Docker image versions #137142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Automatically update Docker image versions | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '*/15 * * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'nodejs' | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version-file: .node-version | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run automation script | |
| run: npm run build | |
| - name: Create update PR | |
| if: env.NODE_PR_TITLE != '' | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 | |
| with: | |
| token: ${{ secrets.GH_API_TOKEN }} | |
| author: 'Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>' | |
| branch: update-branch | |
| base: main | |
| commit-message: '${{ env.NODE_PR_TITLE }}' | |
| title: '${{ env.NODE_PR_TITLE }}' | |
| delete-branch: true | |
| team-reviewers: | | |
| nodejs/docker |