diff --git a/.github/workflows/cron-dagcargo-sizes.yml b/.github/workflows/cron-dagcargo-sizes.yml index 05f846ec19..324e6dcfc6 100644 --- a/.github/workflows/cron-dagcargo-sizes.yml +++ b/.github/workflows/cron-dagcargo-sizes.yml @@ -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 diff --git a/.github/workflows/cron-metrics.yml b/.github/workflows/cron-metrics.yml index 7f7a2b4f0d..31105a6e72 100644 --- a/.github/workflows/cron-metrics.yml +++ b/.github/workflows/cron-metrics.yml @@ -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 diff --git a/.github/workflows/cron-pinata.yml b/.github/workflows/cron-pinata.yml index b8fb2ee3c9..a51f9eb978 100644 --- a/.github/workflows/cron-pinata.yml +++ b/.github/workflows/cron-pinata.yml @@ -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 diff --git a/.github/workflows/cron-pins-failed.yml b/.github/workflows/cron-pins-failed.yml index 2873c259bd..1e134a04ed 100644 --- a/.github/workflows/cron-pins-failed.yml +++ b/.github/workflows/cron-pins-failed.yml @@ -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 diff --git a/.github/workflows/cron-pins.yml b/.github/workflows/cron-pins.yml index 5fcb377381..343e0d3918 100644 --- a/.github/workflows/cron-pins.yml +++ b/.github/workflows/cron-pins.yml @@ -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 diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 0000000000..f12f45b036 --- /dev/null +++ b/.github/workflows/cron.yml @@ -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