Skip to content

Commit

Permalink
Update workflows so every task has an emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
tomouchuu committed Nov 5, 2023
1 parent b42c605 commit 3b4eabd
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,34 @@ env:

jobs:
create-release-pr:
name: Create release pr
name: 📚 Create release pr
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: Fetch tags
- name: 🔗 Fetch tags
run: git fetch --tags origin

- name: Setup bun
- name: 🐇 Setup bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
- name: ⚙️ Install dependencies
run: bun install

- name: Create release pr / create tags
- name: 📔 Create release pr / create tags
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: bun run version-packages
publish: bun run publish-packages
- name: Echo outputs
- name: 🧾 Echo outputs
run: |
echo "hasChangesets=${{ steps.changesets.outputs.hasChangesets }}"
echo "publishedPackages=${{ steps.changesets.outputs.publishedPackages }}"
Expand All @@ -48,9 +51,12 @@ jobs:
publishedPackageNames: ${{ toJSON(fromJSON(steps.changesets.outputs.publishedPackages).*['name']) }}

build-frontend:
name: Build frontend
name: 🛠️ Build frontend
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

Expand Down Expand Up @@ -157,9 +163,12 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

build-backend:
name: Build backend
name: 🛠️ Build backend
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

Expand Down Expand Up @@ -263,7 +272,7 @@ jobs:

cleanup-old-release-tags:
needs: create-release-pr
name: Cleanup old release tags
name: 🚮 Cleanup old release tags
runs-on: ubuntu-latest
continue-on-error: true
permissions:
Expand All @@ -274,7 +283,7 @@ jobs:
matrix:
package: ${{ fromJSON(needs.create-release-pr.outputs.publishedPackages).*['name'] }}
steps:
- name: 'Delete release tags'
- name: 🗑️ Delete release tags
uses: jay2610/[email protected]
with:
keep_latest: 1
Expand Down

0 comments on commit 3b4eabd

Please sign in to comment.