File tree Expand file tree Collapse file tree 8 files changed +26
-25
lines changed Expand file tree Collapse file tree 8 files changed +26
-25
lines changed Original file line number Diff line number Diff line change
1
+ * @ fabasoad
Original file line number Diff line number Diff line change @@ -18,26 +18,24 @@ jobs:
18
18
id : latest_release
19
19
run : |
20
20
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
22
22
- name : Get current release tag
23
23
id : current_release
24
- run : echo "::set-output name= tag:: ${GITHUB_REF/refs\/tags\//}"
24
+ run : echo "tag= ${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
25
25
- name : Build changelog
26
26
id : changelog
27
27
run : |
28
28
body=$(git log --pretty=oneline ${{ steps.latest_release.outputs.tag }}..${{ steps.current_release.outputs.tag }})
29
29
body="${body//'%'/'%25'}"
30
30
body="${body//$'\n'/'%0A'}"
31
31
body="${body//$'\r'/'%0D'}"
32
- echo "::set-output name= body:: ${body}"
32
+ echo "body= ${body}" >> $GITHUB_OUTPUT
33
33
- 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
38
35
with :
39
36
tag_name : ${{ github.ref }}
40
- release_name : ${{ steps.current_release.outputs.tag }}
37
+ name : ${{ steps.current_release.outputs.tag }}
38
+ token : ${{ secrets.GITHUB_TOKEN }}
41
39
body : |
42
40
# Changelog
43
41
Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- ' main'
8
- - ' fix-*'
9
- - ' feature-*'
8
+ pull_request :
10
9
11
10
jobs :
12
11
functional_tests :
13
12
name : Run script
14
13
timeout-minutes : 5
15
14
strategy :
15
+ fail-fast : false
16
16
matrix :
17
17
os : ['ubuntu-latest', 'windows-latest', 'macos-latest']
18
18
version : ['0.1.dev0', '0.1.dev1']
19
- fail-fast : false
20
19
runs-on : ${{ matrix.os }}
21
20
steps :
22
21
- uses : actions/checkout@v3
23
- with :
24
- ref : ${{ github.ref }}
25
22
- uses : ./
26
23
with :
27
24
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 ' }}
30
27
run : |
31
28
touch ./hello-world.bf
32
29
echo "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.++" > ./hello-world.bf
36
33
[[ "${output:32:12}" == "Hello World!" ]] || exit 1;
37
34
shell : bash
38
35
- name : Validate command (Windows)
39
- if : ${{ matrix .os == 'windows-latest ' }}
36
+ if : ${{ runner .os == 'Windows ' }}
40
37
run : |
41
38
New-Item -Path . -Name "hello-world.bf" -ItemType "file" -Value "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.++`n+.------.--------.>>+.>++."
42
39
$Output = (brainfucky --file ./hello-world.bf) | Out-String
Original file line number Diff line number Diff line change 1
1
.DS_Store
2
+ .envrc
2
3
.idea
3
4
.vscode
Original file line number Diff line number Diff line change 1
1
---
2
2
default : true
3
+ MD013 :
4
+ code_blocks : false
5
+ tables : false
6
+ MD041 : false
Original file line number Diff line number Diff line change 9
9
- id : detect-secrets
10
10
stages : ["commit", "push"]
11
11
- repo : https://github.com/zricethezav/gitleaks
12
- rev : v8.15.0
12
+ rev : v8.15.1
13
13
hooks :
14
14
- id : gitleaks
15
15
stages : ["commit", "push"]
@@ -23,10 +23,9 @@ repos:
23
23
rev : v1.28.0
24
24
hooks :
25
25
- id : yamllint
26
- args : ["-c", ".yamllint.yml"]
27
26
# Other
28
27
- repo : https://github.com/pre-commit/pre-commit-hooks
29
- rev : v4.3 .0
28
+ rev : v4.4 .0
30
29
hooks :
31
30
- id : check-merge-conflict
32
31
- id : check-json
Original file line number Diff line number Diff line change 6
6
7
7
This action installs one of the brainfuck interpreters called [ brainfucky] ( https://pypi.org/project/brainfucky/ ) .
8
8
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
+
9
14
## Inputs
10
15
11
- <!-- markdownlint-disable MD013 -->
12
16
| Name | Required | Description | Default | Possible values |
13
17
| ---------| ----------| ---------------------------------------------------------------------------------------------------| ------------| ------------------------|
14
18
| 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 -->
16
19
17
20
## Example usage
18
21
19
22
### Workflow configuration
20
23
21
- <!-- markdownlint-disable MD013 -->
22
24
``` yaml
23
25
name : Test
24
26
@@ -39,11 +41,10 @@ jobs:
39
41
brainfucky --file ./hello-world.bf
40
42
rm ./hello-world.bf
41
43
` ` `
42
- <!-- markdownlint-enable MD013 -->
43
44
44
45
### Result
45
46
46
- ` ` ` shell
47
+ ` ` ` text
47
48
executing file ./hello-world.bf
48
49
Hello World!
49
50
```
Original file line number Diff line number Diff line change 15
15
steps :
16
16
- name : Install Brainfuck
17
17
run : pip3 install brainfucky==${{ inputs.version }}
18
- shell : bash
18
+ shell : sh
You can’t perform that action at this time.
0 commit comments