Skip to content

Commit 37c8b6c

Browse files
author
Antti Harju
authored
Migrate CI away from erb templates (#546)
1 parent 423b590 commit 37c8b6c

File tree

9 files changed

+28
-190
lines changed

9 files changed

+28
-190
lines changed

.github/templates/jobs/build.erb

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

.github/templates/jobs/test.erb

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

.github/templates/pull_request.yml.erb

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

.github/templates/release.yml.erb

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

.github/workflows/release.generated.yml renamed to .github/workflows/build.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
# IMPORTANT NOTE/WARNING!
2-
# Do not make changes to this file, your changes will be overwritten.
3-
#
4-
# This file is automagically generated from:
5-
# - .github/templates/release.yml.erb
6-
# - Templates contained in the smartlyio/github-actions-templates repository
7-
#
8-
# This file can be updated by editing the template file, and running `devbox render workflows`
1+
name: Build
92

10-
name: Build and release the action
11-
12-
on:
13-
push:
14-
branches: [master]
3+
on: workflow_call
154

165
jobs:
176
build:
187
runs-on: ubuntu-22.04
198
steps:
20-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
9+
- uses: actions/checkout@v4
2110
- name: Set Node.js 16.x
2211
uses: actions/setup-node@v4
2312
with:
@@ -42,7 +31,7 @@ jobs:
4231
test:
4332
runs-on: ubuntu-22.04
4433
steps:
45-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
34+
- uses: actions/checkout@v4
4635
- name: Set Node.js 16.x
4736
uses: actions/setup-node@v4
4837
with:
@@ -64,7 +53,7 @@ jobs:
6453
name: "Build and release action"
6554
needs: [build, test]
6655
steps:
67-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
56+
- uses: actions/checkout@v4
6857
with:
6958
fetch-depth: 0
7059
persist-credentials: true
@@ -73,4 +62,5 @@ jobs:
7362
- name: Release flow
7463
uses: smartlyio/github-actions@release-action-node-v1
7564
with:
65+
dry_run: ${{ github.event_name == 'pull_request' }}
7666
token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/check_release_label.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ jobs:
1717
- uses: smartlyio/check-versioning-action@v5
1818
with:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-

.github/workflows/pull_request.generated.yml

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

.github/workflows/pull_request.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
name: Build
10+
uses: ./.github/workflows/build.yml
11+
secrets: inherit

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
name: Build
10+
uses: ./.github/workflows/build.yml
11+
secrets: inherit

0 commit comments

Comments
 (0)