Skip to content

Commit

Permalink
Merge pull request #1 from endlessm/github-actions-pre-commit
Browse files Browse the repository at this point in the history
Run pre-commit from GitHub Actions
  • Loading branch information
manuq authored Sep 24, 2024
2 parents 760db94 + 07aad05 commit ca98b38
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
24 changes: 24 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Checks

on:
pull_request:
push:
branches:
- main

jobs:
pre-commit:
name: Linting and Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]
2 changes: 0 additions & 2 deletions doc/MODS.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,3 @@ appearance and animation.
The same customisation can be done on the `Flag` node, by selecting that one,
and using the `Sprite Frames` `Quick Load` to select the alternative flag
design.


2 changes: 1 addition & 1 deletion scripts/flag.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends Area2D

enum FlagPosition {
DOWN,
UP
UP,
}

## Use this to change the sprite frames of the flag.
Expand Down

0 comments on commit ca98b38

Please sign in to comment.