Skip to content

Commit ffb8c24

Browse files
Bump dependencies by "Check updates #10" (#13)
* Bump dependencies by "Check updates #10" * Add 'dependabot' support Co-authored-by: fabasoad <[email protected]> Co-authored-by: fabasoad <[email protected]>
1 parent e62fb73 commit ffb8c24

File tree

10 files changed

+339
-391
lines changed

10 files changed

+339
-391
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "monthly"
8+
reviewers:
9+
- "fabasoad"
10+
labels:
11+
- "dependencies"
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "monthly"
16+
reviewers:
17+
- "fabasoad"
18+
labels:
19+
- "dependencies"

.github/workflows/check-updates.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/create-release.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Create release
33

44
on:
55
push:
6-
branches:
7-
- main
6+
tags:
7+
- 'v*'
88

99
jobs:
1010
create_release:
@@ -14,32 +14,33 @@ jobs:
1414
- uses: actions/[email protected]
1515
with:
1616
fetch-depth: 0
17-
ref: ${{ github.ref }}
18-
- name: Get commits since last release
19-
id: changes
20-
uses: simbo/changes-since-last-release-action@v1
21-
- name: Get latest version
22-
id: substring
17+
- name: Get latest release tag
18+
id: latest_release
2319
run: |
24-
ver=$(echo "${{ steps.changes.outputs.last-tag }}" | cut -c2-)
25-
echo '::set-output name=version::'$ver
26-
- name: Increase version
27-
id: semver
28-
uses: matt-FFFFFF/[email protected]
29-
with:
30-
semver-input: ${{ steps.substring.outputs.version }}
31-
increment: p
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}"
22+
- name: Get current release tag
23+
id: current_release
24+
run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"
25+
- name: Build changelog
26+
id: changelog
27+
run: |
28+
body=$(git log --pretty=oneline ${{ steps.latest_release.outputs.tag }}..${{ steps.current_release.outputs.tag }})
29+
body="${body//'%'/'%25'}"
30+
body="${body//$'\n'/'%0A'}"
31+
body="${body//$'\r'/'%0D'}"
32+
echo "::set-output name=body::${body}"
3233
- name: Create release
3334
id: create_release
3435
uses: actions/create-release@v1
3536
env:
3637
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3738
with:
38-
tag_name: v${{ steps.semver.outputs.semver }}
39-
release_name: v${{ steps.semver.outputs.semver }}
39+
tag_name: ${{ github.ref }}
40+
release_name: ${{ steps.current_release.outputs.tag }}
4041
body: |
41-
# Changes
42+
# Changelog
4243
43-
${{ steps.changes.outputs.log }}
44+
${{ steps.changelog.outputs.body }}
4445
draft: false
4546
prerelease: false

.github/workflows/functional-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- 'main'
88
- 'bugfix/**'
9-
- 'bump/patch-*'
9+
- 'dependabot/*'
1010
- 'feature/**'
1111

1212
env:

.github/workflows/security-tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ on:
66
branches:
77
- 'main'
88
- 'bugfix/**'
9-
- 'bump/patch-*'
9+
- 'dependabot/*'
1010
- 'feature/**'
11-
schedule:
12-
- cron: '25 2 * * 6'
1311

1412
jobs:
1513
snyk_tests:

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- 'main'
88
- 'bugfix/**'
9-
- 'bump/patch-*'
9+
- 'dependabot/*'
1010
- 'feature/**'
1111

1212
env:
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/[email protected]
2222
- name: Cache node_modules
2323
id: cache
24-
uses: actions/[email protected].4
24+
uses: actions/[email protected].5
2525
with:
2626
path: '**/node_modules'
2727
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

.github/workflows/yaml-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/[email protected]
16-
- uses: ibiqlik/[email protected].0
16+
- uses: ibiqlik/[email protected].1
1717
with:
1818
config_file: .yamllint.yml
1919
strict: false

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-brainfuck-action",
3-
"version": "1.0.12",
3+
"version": "1.0.13",
44
"description": "This GitHub action installs one of the brainfuck interpreters called brainfucky.",
55
"main": "dist/index.js",
66
"repository": {
@@ -31,21 +31,21 @@
3131
},
3232
"homepage": "https://github.com/fabasoad/setup-brainfuck-action#readme",
3333
"dependencies": {
34-
"@actions/core": "1.2.6",
34+
"@actions/core": "1.2.7",
3535
"@actions/exec": "1.0.4"
3636
},
3737
"devDependencies": {
38-
"@vercel/ncc": "0.28.2",
38+
"@vercel/ncc": "0.28.4",
3939
"chai": "4.3.4",
40-
"eslint": "7.24.0",
40+
"eslint": "7.25.0",
4141
"eslint-config-google": "0.14.0",
4242
"git-branch-is": "4.0.0",
4343
"husky": "6.0.0",
4444
"markdownlint-cli": "0.27.1",
4545
"mocha": "8.3.2",
4646
"mocha-param": "2.0.1",
4747
"nyc": "15.1.0",
48-
"snyk": "1.530.0"
48+
"snyk": "1.574.0"
4949
},
5050
"snyk": true
5151
}

0 commit comments

Comments
 (0)