Skip to content

Commit

Permalink
feat: ignore announce when release was skip
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 2, 2024
1 parent f9455d5 commit edf18d1
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/assign-author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: toshimaru/auto-author-assign@v2.1.1
continue-on-error: true

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- id: matrix
run: echo "value=$JOBS_NAME" >> $GITHUB_OUTPUT

Expand All @@ -24,7 +24,7 @@ jobs:
matrix:
value: ${{ fromJSON(needs.setup.outputs.matrix) }}
steps:
- uses: taiga-family/ci/actions/run/wait-job@v1.91.0
- uses: taiga-family/ci/actions/run/wait-job@v1.92.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
job: ${{ matrix.value }}
Expand All @@ -34,13 +34,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/auto/approve/double@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/auto/approve/double@v1.92.0
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
with:
token1: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
- uses: taiga-family/ci/actions/run/merge@v1.91.0
- uses: taiga-family/ci/actions/run/merge@v1.92.0
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0
- run: npx nx prerender editor-demo

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0
- run: npx nx build editor

concurrency:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0
- run: npx nx prerender editor-demo -c github
- uses: taiga-family/ci/actions/deploy/github-pages@v1.91.0
- uses: taiga-family/ci/actions/deploy/github-pages@v1.92.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
folder: dist/demo/browser
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0
- run: npx nx build editor-demo
- name: Deploy preview
uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/playwright@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0
- uses: taiga-family/ci/actions/setup/playwright@v1.92.0
- run: npx nx prerender editor-demo
- uses: taiga-family/ci/actions/run/serve@v1.91.0
- uses: taiga-family/ci/actions/run/serve@v1.92.0
with:
port: ${{ env.NG_SERVER_PORT }}
directory: ${{ env.DIST }}
Expand All @@ -21,12 +21,12 @@ jobs:

- run: npx nx e2e editor-demo-playwright -- --update-snapshots

- uses: taiga-family/ci/actions/run/clone@v1.91.0
- uses: taiga-family/ci/actions/run/clone@v1.92.0
with:
branch: snapshots/demo/next/${{ github.base_ref }}
destination: ${{ env.DIST_NEXT }}

- uses: taiga-family/ci/actions/run/serve@v1.91.0
- uses: taiga-family/ci/actions/run/serve@v1.92.0
with:
port: ${{ env.NG_SERVER_PORT }}
directory: ${{ env.DIST_NEXT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v4.2.0
with:
persist-credentials: false
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0
- run: |
if [[ "${{ env.SUPPORT_AUTO_PUSH }}" == "true" ]]; then
npm run stylelint -- --fix
Expand All @@ -25,7 +25,7 @@ jobs:
npm run prettier -- --check
npm run lint
fi
- uses: taiga-family/ci/actions/auto/push@v1.91.0
- uses: taiga-family/ci/actions/auto/push@v1.92.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ready-to-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
if: github.event.review.state == 'approved'
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/auto/label-when-approved@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/auto/label-when-approved@v1.92.0
with:
approvals: 1
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,22 @@ jobs:
if: "!contains(github.event.head_commit.message, 'chore(release)')"
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/run/release-it@v1.91.0
- uses: taiga-family/ci/actions/run/release-it@v1.92.0
id: release-it
with:
ref: ${{ github.ref }}
mode: ${{ github.event.inputs.mode }}
npmToken: ${{ secrets.TAIGA_UI_SCOPE_NPM_TOKEN }}
githubToken: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

- uses: taiga-family/ci/actions/run/read-package-json@v1.91.0
- uses: taiga-family/ci/actions/run/read-package-json@v1.92.0
id: info
with:
path: ./projects/editor/package.json

- name: Announce to Telegram
uses: taiga-family/ci/actions/messenger/telegram/announce@v1.91.0
if: steps.release-it.outputs.released == 'true'
uses: taiga-family/ci/actions/messenger/telegram/announce@v1.92.0
with:
chatId: ${{ secrets.TAIGA_TELEGRAM_CHAT_ID }}
topicId: ${{ secrets.TAIGA_TELEGRAM_CHAT_THREAD_ID }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0

- run: npx nx build editor-demo
- run: tree ${{ env.DIST }} -P '*.html'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- uses: taiga-family/ci/actions/setup/variables@v1.91.0
- uses: taiga-family/ci/actions/setup/node@v1.91.0
- uses: taiga-family/ci/actions/setup/variables@v1.92.0
- uses: taiga-family/ci/actions/setup/node@v1.92.0
- run: npx nx test editor --nxBail
- uses: codecov/codecov-action@v4.6.0
with:
Expand Down

0 comments on commit edf18d1

Please sign in to comment.