Skip to content

Bump screeps from 4.2.15 to 4.2.18 #3

Bump screeps from 4.2.15 to 4.2.18

Bump screeps from 4.2.15 to 4.2.18 #3

Workflow file for this run

name: Dependabot auto-approve
on: pull_request_target
permissions:
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
# Checking the author will prevent your Action run failing on non-Dependabot PRs
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
- uses: actions/checkout@v4
- name: Enable auto-merge for Dependabot PRs
if: ${{contains(steps.dependabot-metadata.outputs.dependency-names, 'screeps') && contains(fromJSON('["version-update:semver-patch", "version-update:semver-minor"]), steps.dependabot-metadata.outputs.update-type)}}

Check failure on line 16 in .github/workflows/dependabot.yml

View workflow run for this annotation

GitHub Actions / Dependabot auto-approve

Invalid workflow file

The workflow is not valid. .github/workflows/dependabot.yml (Line: 16, Col: 13): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Approve a PR if not already approved
run: |
gh pr checkout "$PR_URL" # sets the upstream metadata for `gh pr status`
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ];
then gh pr review --approve "$PR_URL"
else echo "PR already approved, skipping additional approvals to minimize emails/notification noise.";
fi
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}