Skip to content

Commit c14f7d2

Browse files
authored
feat: cron release workflow (#1932)
1 parent a7acade commit c14f7d2

6 files changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/cron-dagcargo-sizes.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
timeout-minutes: 60
1616
steps:
1717
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- name: Checkout latest cron release tag
21+
run: |
22+
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
23+
git checkout $LATEST_TAG
1824
- uses: actions/setup-node@v2
1925
with:
2026
node-version: 16

.github/workflows/cron-metrics.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
timeout-minutes: 20
1616
steps:
1717
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- name: Checkout latest cron release tag
21+
run: |
22+
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
23+
git checkout $LATEST_TAG
1824
- uses: actions/setup-node@v2
1925
with:
2026
node-version: 16

.github/workflows/cron-pinata.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
env: ['production']
1515
steps:
1616
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Checkout latest cron release tag
20+
run: |
21+
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
22+
git checkout $LATEST_TAG
1723
- uses: actions/setup-node@v2
1824
with:
1925
node-version: 16

.github/workflows/cron-pins-failed.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
env: ['production']
2020
steps:
2121
- uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
- name: Checkout latest cron release tag
25+
run: |
26+
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
27+
git checkout $LATEST_TAG
2228
- uses: actions/setup-node@v2
2329
with:
2430
node-version: 16

.github/workflows/cron-pins.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
timeout-minutes: 60
1616
steps:
1717
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- name: Checkout latest cron release tag
21+
run: |
22+
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
23+
git checkout $LATEST_TAG
1824
- uses: actions/setup-node@v2
1925
with:
2026
node-version: 16

.github/workflows/cron.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: cron
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'packages/cron/**'
8+
- '.github/workflows/cron.yml'
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
# This condition is not required, but leaving it here to safeguard against future new triggers
13+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
14+
steps:
15+
- uses: GoogleCloudPlatform/release-please-action@v3
16+
id: tag-release
17+
with:
18+
path: packages/cron
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
release-type: node
21+
monorepo-tags: true
22+
package-name: cron

0 commit comments

Comments
 (0)