From 7ccb3232de32b8c2316b3cc9d18a233fa9f88524 Mon Sep 17 00:00:00 2001 From: manilk1x Date: Wed, 15 Oct 2025 09:56:01 +0530 Subject: [PATCH] Fixing linter issues for yml files --- .github/workflows/auto-close.yml | 62 ++++++++++++------------- .github/workflows/auto-update.yml | 76 +++++++++++++++---------------- .github/workflows/post-merge.yml | 2 +- .github/workflows/pre-merge.yml | 4 +- 4 files changed, 72 insertions(+), 72 deletions(-) diff --git a/.github/workflows/auto-close.yml b/.github/workflows/auto-close.yml index b9b40ca..f0e7c98 100644 --- a/.github/workflows/auto-close.yml +++ b/.github/workflows/auto-close.yml @@ -1,32 +1,32 @@ -# SPDX-FileCopyrightText: (C) 2025 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - ---- - -name: Stale Pull Requests - -# After 30 days of no activity on a PR, the PR should be marked as stale, -# a comment made on the PR informing the author of the new status, -# and closed after 15 days if there is no further activity from the change to stale state. -on: - schedule: - - cron: '30 1 * * *' # run every day - workflow_dispatch: {} - -permissions: {} - -jobs: - stale-auto-close: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: +# SPDX-FileCopyrightText: (C) 2025 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +--- + +name: Stale Pull Requests + +# After 30 days of no activity on a PR, the PR should be marked as stale, +# a comment made on the PR informing the author of the new status, +# and closed after 15 days if there is no further activity from the change to stale state. +on: + schedule: + - cron: '30 1 * * *' # run every day + workflow_dispatch: {} + +permissions: {} + +jobs: + stale-auto-close: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: - uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Make a comment or update the PR to avoid closing PR after 15 days.' - days-before-pr-stale: 30 - days-before-pr-close: 15 - remove-pr-stale-when-updated: 'true' - close-pr-message: 'This pull request was automatically closed due to inactivity' \ No newline at end of file + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Make a comment or update the PR to avoid closing PR after 15 days.' + days-before-pr-stale: 30 + days-before-pr-close: 15 + remove-pr-stale-when-updated: 'true' + close-pr-message: 'This pull request was automatically closed due to inactivity' diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index e999990..887afda 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -1,39 +1,39 @@ -# SPDX-FileCopyrightText: (C) 2025 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - ---- - -name: Auto Update PR - -# On push to the main branch and support branches, update any branches that are out of date -# and have auto-merge enabled. If the branch is currently out of date with the base branch, -# it must be first manually updated and then will be kept up to date on future runs. -on: - push: - branches: - - main - - release-* - -permissions: {} - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - update-pull-requests: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - persist-credentials: false - - - name: Update pull requests +# SPDX-FileCopyrightText: (C) 2025 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +--- + +name: Auto Update PR + +# On push to the main branch and support branches, update any branches that are out of date +# and have auto-merge enabled. If the branch is currently out of date with the base branch, +# it must be first manually updated and then will be kept up to date on future runs. +on: + push: + branches: + - main + - release-* + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + update-pull-requests: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + + - name: Update pull requests uses: open-edge-platform/orch-ci/.github/actions/pr_updater@76700c2fb6d547733b9218d9638dca43f5296399 # 0.1.52 - with: - github_token: ${{ secrets.SYS_ORCH_GITHUB }} + with: + github_token: ${{ secrets.SYS_ORCH_GITHUB }} diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 99cb9de..30473bd 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -12,7 +12,7 @@ on: branches: - main - release-* - workflow_dispatch: + workflow_dispatch: jobs: post-merge: diff --git a/.github/workflows/pre-merge.yml b/.github/workflows/pre-merge.yml index b6aac38..62aa7f7 100644 --- a/.github/workflows/pre-merge.yml +++ b/.github/workflows/pre-merge.yml @@ -4,13 +4,13 @@ --- name: Pre-Merge CI Pipeline - + on: pull_request: branches: - main - release-* - workflow_dispatch: + workflow_dispatch: permissions: {}