Skip to content

Commit

Permalink
feat: cron release workflow (#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
flea89 authored Jun 8, 2022
1 parent a7acade commit c14f7d2
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cron-dagcargo-sizes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout latest cron release tag
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
git checkout $LATEST_TAG
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/cron-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout latest cron release tag
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
git checkout $LATEST_TAG
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/cron-pinata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
env: ['production']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout latest cron release tag
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
git checkout $LATEST_TAG
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/cron-pins-failed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
env: ['production']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout latest cron release tag
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
git checkout $LATEST_TAG
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/cron-pins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout latest cron release tag
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 --match='cron-*')
git checkout $LATEST_TAG
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: cron
on:
push:
branches:
- main
paths:
- 'packages/cron/**'
- '.github/workflows/cron.yml'
release:
name: Release
runs-on: ubuntu-latest
# This condition is not required, but leaving it here to safeguard against future new triggers
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: tag-release
with:
path: packages/cron
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
monorepo-tags: true
package-name: cron

0 comments on commit c14f7d2

Please sign in to comment.