Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Bump kachick/wait-other-jobs from 2 to 3 #216

Bump kachick/wait-other-jobs from 2 to 3

Bump kachick/wait-other-jobs from 2 to 3 #216

Workflow file for this run

name: πŸ€–πŸ‘ŒπŸ€–
on: pull_request
permissions:
contents: write
pull-requests: write
# checks: read # For private repositories
# actions: read # For private repositories
jobs:
dependabot:
timeout-minutes: 30
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
- name: Wait other jobs
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }}
uses: kachick/wait-other-jobs@v3
with:
skip-same-workflow: 'true'
timeout-minutes: 10
- name: Approve and merge
if: ${{ (steps.metadata.outputs.update-type != 'version-update:semver-major') || contains(steps.metadata.outputs.dependency-names, 'DeterminateSystems') }}
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/kachick/anylang-template/issues/51
selfup-runner:
timeout-minutes: 30
runs-on: ubuntu-latest
if: ${{ github.actor == 'selfup-runner[bot]' }}
steps:
- name: Wait other jobs
uses: kachick/wait-other-jobs@v3
with:
skip-same-workflow: 'true'
timeout-minutes: 20
- name: Approve and merge
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --delete-branch --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}