Bump github.com/buildpacks/pack from 0.35.1-0.20240729220708-a651c5dac4c2 to 0.35.1 #102
Workflow file for this run
This file contains 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: Go | |
on: | |
pull_request: | |
branches: ["main"] | |
push: | |
branches: ["main"] | |
workflow_dispatch: {} | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- run: make test | |
diego-compat: | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: cloudfoundry/diego-release | |
ref: develop | |
submodules: recursive | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- run: | | |
cd src/code.cloudfoundry.org && go get -u code.cloudfoundry.org/cnbapplifecycle@${{ github.event.pull_request.head.sha }} | |
automerge: | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' | |
needs: [diego-compat, unit] | |
steps: | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v2 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Approve and merge | |
run: | | |
gh pr review --approve "$PR_URL" | |
gh pr merge --rebase --delete-branch "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |