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
23 changes: 15 additions & 8 deletions .github/workflows/auto-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,19 @@ jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: pull-request
uses: repo-sync/pull-request@v2
with:
destination_branch: ${{ inputs.destination_branch }}
pr_title: ${{ inputs.pr_title }}
pr_body: ${{ inputs.pr_body }}
pr_label: ${{ inputs.pr_label }}
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Check if PR already exists
EXISTING=$(gh pr list --base "${{ inputs.destination_branch }}" --head "${{ github.ref_name }}" --json number --jq '.[0].number // empty')
if [ -n "$EXISTING" ]; then
echo "PR #${EXISTING} already exists, skipping."
exit 0
fi
gh pr create \
--base "${{ inputs.destination_branch }}" \
--title "${{ inputs.pr_title }}" \
--body "${{ inputs.pr_body }}" \
--label "${{ inputs.pr_label }}"
10 changes: 5 additions & 5 deletions .github/workflows/backlog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Send Notification to Backlog
uses: bicstone/backlog-notify@master
env:
PROJECT_KEY: ${{ inputs.project }}
API_HOST: ${{ inputs.host }}
API_KEY: ${{ secrets.BACKLOG_API_KEY }}
uses: bicstone/backlog-notify@v6
with:
project_key: ${{ inputs.project }}
api_host: ${{ inputs.host }}
api_key: ${{ secrets.BACKLOG_API_KEY }}
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
name: Yaml Syntax Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'

- name: Check Yaml Syntax
run: |
Expand All @@ -39,13 +39,13 @@ jobs:
name: Generate readme.txt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4

- uses: ./actions/wp-readme

- name: Check file existence.
id: check_files
uses: andstor/file-existence-action@v1
uses: andstor/file-existence-action@v3
with:
files: "readme.txt"

Expand All @@ -58,7 +58,7 @@ jobs:
name: Version really changed?
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4

- uses: ./actions/versioning
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run:
working-directory: ${{ inputs.working_directory }}
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Install Node
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-short-open-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run:
working-directory: ${{ inputs.working_directory }}
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4

- name: Setup PHP with composer
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run:
working-directory: ${{ inputs.working_directory }}
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Setup PHP with composer
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phplint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
matrix:
php: ${{ fromJSON(inputs.php_versions) }}
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4

- name: Setup PHP with composer
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wp-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
env:
MYSQL_ROOT_PASSWORD: root
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

# ubuntu-latest requires subversion.
# see: https://github.com/10up/action-wordpress-plugin-deploy/releases/tag/2.3.0
Expand Down
2 changes: 1 addition & 1 deletion actions/distignore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
steps:
- name: Add Prefix
id: check_files
uses: andstor/file-existence-action@v1
uses: andstor/file-existence-action@v3
with:
files: ".distignore"

Expand Down
2 changes: 1 addition & 1 deletion actions/versioning/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
steps:
- name: Check file existence.
id: check_files
uses: andstor/file-existence-action@v1
uses: andstor/file-existence-action@v3
with:
files: ${{ inputs.files }}

Expand Down
Loading