From 8a6ee906a7bd613bc79932bac6bc2a416b9f59f8 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Wed, 20 Jul 2022 20:24:09 +0200 Subject: [PATCH] ci: better naming for ci --- .github/workflows/labelsync.yml | 5 +++-- .github/workflows/pr-automation.yml | 5 +++-- .github/workflows/publish-dev-docker.yml | 7 +++---- .github/workflows/publish-dev.yml | 6 +++--- .github/workflows/publish-docker.yml | 11 +++++------ .github/workflows/test.yml | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/labelsync.yml b/.github/workflows/labelsync.yml index 78637829f..5a9e1cf0e 100644 --- a/.github/workflows/labelsync.yml +++ b/.github/workflows/labelsync.yml @@ -1,4 +1,4 @@ -name: Label Sync +name: Label sync on: schedule: - cron: '0 0 * * *' @@ -9,9 +9,10 @@ on: paths: - '.github/labels.yml' jobs: - labelsync: + label-sync: name: Label sync runs-on: ubuntu-latest + if: github.repository_owner == 'discordjs' steps: - name: Checkout repository uses: actions/checkout@v3 diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index 2780283fb..62e184bcd 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -1,8 +1,9 @@ -name: 'PR Automation' +name: 'PR Triage' on: pull_request_target: jobs: - triage: + pr-triage: + name: PR Triage runs-on: ubuntu-latest steps: - name: Automatically label PR diff --git a/.github/workflows/publish-dev-docker.yml b/.github/workflows/publish-dev-docker.yml index 10ebb13f8..8b3b85a83 100644 --- a/.github/workflows/publish-dev-docker.yml +++ b/.github/workflows/publish-dev-docker.yml @@ -1,14 +1,13 @@ -name: Publish dev Docker Images +name: Publish dev docker images on: workflow_dispatch: schedule: - cron: '0 */12 * * *' jobs: - docker: - name: Docker + docker-publish: + name: Docker publish runs-on: ubuntu-latest if: github.repository_owner == 'discordjs' - steps: - name: Checkout repository uses: actions/checkout@v3 diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml index dd03f2d3b..16f9700d4 100644 --- a/.github/workflows/publish-dev.yml +++ b/.github/workflows/publish-dev.yml @@ -4,8 +4,8 @@ on: schedule: - cron: '0 */12 * * *' jobs: - npm: - name: npm + npm-publish: + name: npm publish strategy: fail-fast: false matrix: @@ -42,7 +42,7 @@ jobs: - name: Build dependencies run: yarn build - - name: Publish + - name: Publish package run: | yarn workspace ${{ matrix.package }} release --preid "dev.$(date +%s)-$(git rev-parse --short HEAD)" yarn workspace ${{ matrix.package }} npm publish --tag dev || true diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 82a424dc3..86178e4c8 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -1,11 +1,10 @@ -name: Publish Docker Images +name: Publish dev docker images on: workflow_dispatch: jobs: - docker: - name: Docker + docker-publish: + name: Docker publish runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v3 @@ -16,10 +15,10 @@ jobs: - name: Login to DockerHub run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin - - name: Build the image + - name: Build docker image run: docker build -t discordjs/proxy:latest -f packages/proxy-container/Dockerfile . - - name: Tag the image with major + - name: Tag image with major run: docker tag discordjs/proxy discordjs/proxy:$(cut -d '.' -f1 <<< $(jq --raw-output '.version' packages/proxy-container/package.json)) - name: Push image to DockerHub diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4178f20b3..e89e2bf24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,8 @@ name: Tests on: [push, pull_request] jobs: - lint: - name: Lint + tests: + name: Tests runs-on: ubuntu-latest steps: - name: Checkout repository