GHA conditions syntay fix

This commit is contained in:
Igor Pecovnik
2024-11-01 08:58:54 +01:00
committed by I am just a bot
parent ef193e5a03
commit 6954f12531

View File

@@ -12,10 +12,11 @@ jobs:
contents: read # for pascalgn/size-label-action to determine modified files
pull-requests: write # for pascalgn/size-label-action to add labels to PRs
name: "Remove Ready to merge"
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
runs-on: ubuntu-latest
steps:
- uses: PauMAVA/add-remove-label-action@v1.0.3
if: ${{ github.event.action == opened || github.event.action == reopened || github.event.action == synchronize }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
add: ""
@@ -27,12 +28,12 @@ jobs:
pull-requests: write # for actions/labeler to add labels to PRs
name: "Category labels"
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/labeler@v5
if: ${{ github.event.action == opened || github.event.action == reopened || github.event.action == synchronize }}
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -42,12 +43,12 @@ jobs:
pull-requests: write # for pascalgn/size-label-action to add labels to PRs
name: "Size label"
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/size-label-action@v0.5.5"
if: ${{ github.event.action == opened || github.event.action == reopened || github.event.action == synchronize }}
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with: