Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/basic-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
fail: true

spellcheck:
name: Spellcheck
# Config file: .cspell.yml

name: Spellcheck
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label-merge-conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on:

jobs:
check-prs:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards'

name: Check PRs for merge conflicts
runs-on: ubuntu-latest

steps:
- name: Check PRs for merge conflicts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/label-new-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ on:

jobs:
label-new-prs:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event_name == 'pull_request_target'

name: Add labels to new PRs
runs-on: ubuntu-latest

steps:
- name: Label new PRs
Expand All @@ -30,10 +30,10 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

validate-labeler-worflow:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event_name == 'pull_request' && github.event.pull_request.merged == false

name: Validate changes to Labeler logic
runs-on: ubuntu-latest

steps:
# Checkout is needed to use the `use_local_config` option.
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/label-remove-outdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:

jobs:
on-issue-close:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event.issue.state == 'closed'

name: Clean up labels on issue close
runs-on: ubuntu-latest

steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
Expand All @@ -29,10 +29,10 @@ jobs:
Status: triage

on-pr-review-request:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event.action == 'review_requested'

name: "Clean up labels on PR (re-)review request"
runs-on: ubuntu-latest

steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
Expand All @@ -42,10 +42,10 @@ jobs:
Status: awaiting feedback

on-pr-merge:
runs-on: ubuntu-latest
if: github.repository_owner == 'PHPCSStandards' && github.event.pull_request.merged == true

name: Clean up labels on PR merge
runs-on: ubuntu-latest

steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
Expand All @@ -61,11 +61,11 @@ jobs:
Status: wait for PHPCS 4.0.0 release

on-pr-close:
runs-on: ubuntu-latest
# yamllint disable-line rule:line-length
if: github.repository_owner == 'PHPCSStandards' && github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == false

name: Clean up labels on PR close
runs-on: ubuntu-latest

steps:
- uses: mondeja/remove-labels-gh-action@b7118e4ba5dca74acf1059b3cb7660378ff9ab1a # v2.0.0
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ jobs:
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'

runs-on: ubuntu-latest

permissions:
# Needed for the PR comment.
pull-requests: write

name: Comment on a pull request
runs-on: ubuntu-latest

steps:
- name: Download PR info artifact
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/publish-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ concurrency:

jobs:
publish-wiki:
name: "Publish Wiki"
if: github.repository == 'PHPCSStandards/PHP_CodeSniffer-documentation'

runs-on: ubuntu-latest

permissions:
# Needed for the commit to the wiki.
contents: write

if: github.repository == 'PHPCSStandards/PHP_CodeSniffer-documentation'

name: "Publish Wiki"
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -159,6 +159,10 @@ jobs:

# ################################################################################
# Dry-run/PRs: save PR info for use in Pull Request Comment workflow.
#
# Note: posting the comment needs to be done via a separate workflow to allow for
# the commenting to work on PRs coming from forks.
# See issue #42 and PR #43 for full details.
# ################################################################################

- name: Create temporary directory
Expand Down
Loading