Skip to content

Commit

Permalink
tech: move check dependabot to job is-updated-vkui-floating-ui (#7471)
Browse files Browse the repository at this point in the history
Не было проверки на то, что PR был создан dependabot, поэтому падал шаг dependabot/fetch-metadata. Добавил проверку перед джобой

Также поправил проблему с вызовом экшена в pull_request_common.yml/labels
  • Loading branch information
EldarMuhamethanov authored Aug 29, 2024
1 parent a65f2ab commit 21dfcda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr_close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:

is-updated-vkui-floating-ui:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == true
&& github.event.pull_request.user.login == 'dependabot[bot]'
&& github.event.pull_request.base.ref == 'master' }}
outputs:
result: ${{ steps.check_floating_ui_updated.outputs.floating_ui_updated }}
prev_floating_ui_version: ${{ steps.check_floating_ui_updated.outputs.prev_version }}
Expand Down Expand Up @@ -93,10 +96,7 @@ jobs:
autopublish-vkui-floating-ui:
runs-on: ubuntu-latest
needs: is-updated-vkui-floating-ui
if: ${{ github.event.pull_request.merged == true
&& github.event.pull_request.user.login == 'dependabot[bot]'
&& github.event.pull_request.base.ref == 'master'
&& needs.is-updated-vkui-floating-ui.outputs.result == 'true' }}
if: ${{ needs.is-updated-vkui-floating-ui.outputs.result == 'true' }}
permissions:
issues: write
pull-requests: write
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull_request_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
runs-on: ubuntu-latest
name: Add labels
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Patch
if: ${{ startsWith(github.event.pull_request.title, 'fix') }}
uses: ./.github/actions/add-label-to-pull-request
Expand Down

0 comments on commit 21dfcda

Please sign in to comment.