Skip to content

[Github] Update actions/checkout action to v6 (#693) #53

[Github] Update actions/checkout action to v6 (#693)

[Github] Update actions/checkout action to v6 (#693) #53

name: Build Premerge Buildbot Container
permissions:
contents: read
on:
push:
branches:
- main
paths:
- .github/workflows/build-premerge-buildbot-container.yml
- 'premerge/buildbot/**'
pull_request:
paths:
- .github/workflows/build-premerge-buildbot-container.yml
- 'premerge/buildbot/**'
jobs:
build-premerge-buildbot-container:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-24.04
steps:
- name: Checkout LLVM Zorg
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
sparse-checkout: premerge/buildbot
- name: Build Container
uses: llvm/llvm-project/.github/actions/build-container@e30dc12640a21a0c25a4ca60e30fb56a6745a57b
with:
container-name: premerge-buildbot
context: premerge/buildbot
push-premerge-buildbot-container:
if: github.event_name == 'push'
needs:
- build-premerge-buildbot-container
permissions:
packages: write
runs-on: ubuntu-24.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: llvm/llvm-project/.github/actions/push-container@e30dc12640a21a0c25a4ca60e30fb56a6745a57b
with:
token: ${{ secrets.GITHUB_TOKEN }}