Skip to content

Commit 7d29e40

Browse files
Bump pre-commit/pre-commit-hooks from 4.3.0 to 4.4.0 (#72)
1 parent afccb6f commit 7d29e40

File tree

8 files changed

+26
-25
lines changed

8 files changed

+26
-25
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @fabasoad

.github/workflows/create-release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,24 @@ jobs:
1818
id: latest_release
1919
run: |
2020
latest_tag=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
21-
echo "::set-output name=tag::${latest_tag}"
21+
echo "tag=${latest_tag}" >> $GITHUB_OUTPUT
2222
- name: Get current release tag
2323
id: current_release
24-
run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"
24+
run: echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
2525
- name: Build changelog
2626
id: changelog
2727
run: |
2828
body=$(git log --pretty=oneline ${{ steps.latest_release.outputs.tag }}..${{ steps.current_release.outputs.tag }})
2929
body="${body//'%'/'%25'}"
3030
body="${body//$'\n'/'%0A'}"
3131
body="${body//$'\r'/'%0D'}"
32-
echo "::set-output name=body::${body}"
32+
echo "body=${body}" >> $GITHUB_OUTPUT
3333
- name: Create release
34-
id: create_release
35-
uses: actions/create-release@v1
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
uses: softprops/action-gh-release@v1
3835
with:
3936
tag_name: ${{ github.ref }}
40-
release_name: ${{ steps.current_release.outputs.tag }}
37+
name: ${{ steps.current_release.outputs.tag }}
38+
token: ${{ secrets.GITHUB_TOKEN }}
4139
body: |
4240
# Changelog
4341

.github/workflows/functional-tests.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,25 @@ on:
55
push:
66
branches:
77
- 'main'
8-
- 'fix-*'
9-
- 'feature-*'
8+
pull_request:
109

1110
jobs:
1211
functional_tests:
1312
name: Run script
1413
timeout-minutes: 5
1514
strategy:
15+
fail-fast: false
1616
matrix:
1717
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
1818
version: ['0.1.dev0', '0.1.dev1']
19-
fail-fast: false
2019
runs-on: ${{ matrix.os }}
2120
steps:
2221
- uses: actions/checkout@v3
23-
with:
24-
ref: ${{ github.ref }}
2522
- uses: ./
2623
with:
2724
version: ${{ matrix.version }}
28-
- name: Validate command (non-Windows)
29-
if: ${{ matrix.os != 'windows-latest' }}
25+
- name: Validate command (Linux, macOS)
26+
if: ${{ runner.os != 'Windows' }}
3027
run: |
3128
touch ./hello-world.bf
3229
echo "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.++" > ./hello-world.bf
@@ -36,7 +33,7 @@ jobs:
3633
[[ "${output:32:12}" == "Hello World!" ]] || exit 1;
3734
shell: bash
3835
- name: Validate command (Windows)
39-
if: ${{ matrix.os == 'windows-latest' }}
36+
if: ${{ runner.os == 'Windows' }}
4037
run: |
4138
New-Item -Path . -Name "hello-world.bf" -ItemType "file" -Value "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.++`n+.------.--------.>>+.>++."
4239
$Output = (brainfucky --file ./hello-world.bf) | Out-String

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
2+
.envrc
23
.idea
34
.vscode

.markdownlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
---
22
default: true
3+
MD013:
4+
code_blocks: false
5+
tables: false
6+
MD041: false

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: detect-secrets
1010
stages: ["commit", "push"]
1111
- repo: https://github.com/zricethezav/gitleaks
12-
rev: v8.15.0
12+
rev: v8.15.1
1313
hooks:
1414
- id: gitleaks
1515
stages: ["commit", "push"]
@@ -23,10 +23,9 @@ repos:
2323
rev: v1.28.0
2424
hooks:
2525
- id: yamllint
26-
args: ["-c", ".yamllint.yml"]
2726
# Other
2827
- repo: https://github.com/pre-commit/pre-commit-hooks
29-
rev: v4.3.0
28+
rev: v4.4.0
3029
hooks:
3130
- id: check-merge-conflict
3231
- id: check-json

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@
66

77
This action installs one of the brainfuck interpreters called [brainfucky](https://pypi.org/project/brainfucky/).
88

9+
## Prerequisites
10+
11+
The following tools have to be installed for successful work of this GitHub action:
12+
[pip3](https://pip.pypa.io/en/stable/).
13+
914
## Inputs
1015

11-
<!-- markdownlint-disable MD013 -->
1216
| Name | Required | Description | Default | Possible values |
1317
|---------|----------|---------------------------------------------------------------------------------------------------|------------|------------------------|
1418
| version | No | Brainfucky library version that can be found [here](https://pypi.org/project/brainfucky/) version | `0.1.dev1` | `0.1.dev1`, `0.1.dev0` |
15-
<!-- markdownlint-enable MD013 -->
1619

1720
## Example usage
1821

1922
### Workflow configuration
2023

21-
<!-- markdownlint-disable MD013 -->
2224
```yaml
2325
name: Test
2426

@@ -39,11 +41,10 @@ jobs:
3941
brainfucky --file ./hello-world.bf
4042
rm ./hello-world.bf
4143
```
42-
<!-- markdownlint-enable MD013 -->
4344
4445
### Result
4546
46-
```shell
47+
```text
4748
executing file ./hello-world.bf
4849
Hello World!
4950
```

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ runs:
1515
steps:
1616
- name: Install Brainfuck
1717
run: pip3 install brainfucky==${{ inputs.version }}
18-
shell: bash
18+
shell: sh

0 commit comments

Comments
 (0)