ci: update global workflows (#613)

This commit is contained in:
LizardByte-bot
2022-12-22 22:47:24 -05:00
committed by GitHub
parent 1e037db7bd
commit 5adbd2988c
4 changed files with 13 additions and 15 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ jobs:
BASE_BRANCHES: nightly BASE_BRANCHES: nightly
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
GITHUB_LOGIN: ${{ secrets.GH_BOT_NAME }} GITHUB_LOGIN: ${{ secrets.GH_BOT_NAME }}
MERGE_LABELS: "" MERGE_LABELS: "!dependencies"
MERGE_METHOD: "squash" MERGE_METHOD: "squash"
MERGE_COMMIT_MESSAGE: "{pullRequest.title} (#{pullRequest.number})" MERGE_COMMIT_MESSAGE: "{pullRequest.title} (#{pullRequest.number})"
MERGE_DELETE_BRANCH: true MERGE_DELETE_BRANCH: true
+2 -10
View File
@@ -10,11 +10,8 @@ on:
types: types:
- edited - edited
- opened - opened
- reopened
- synchronize - synchronize
pull_request_review:
types:
- edited
- submitted
jobs: jobs:
label_pr: label_pr:
@@ -40,11 +37,7 @@ jobs:
steps.org_member.outputs.result == 'true' && steps.org_member.outputs.result == 'true' &&
contains(github.event.pull_request.labels.*.name, 'autoupdate') == false && contains(github.event.pull_request.labels.*.name, 'autoupdate') == false &&
contains(github.event.pull_request.body, contains(github.event.pull_request.body,
fromJSON('"\n- [x] I want maintainers to keep my branch updated"')) == true && fromJSON('"\n- [x] I want maintainers to keep my branch updated"')) == true
(
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved') ||
(github.event_name == 'pull_request')
)
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
@@ -60,7 +53,6 @@ jobs:
- name: Unlabel autoupdate - name: Unlabel autoupdate
if: >- if: >-
contains(github.event.pull_request.labels.*.name, 'autoupdate') && contains(github.event.pull_request.labels.*.name, 'autoupdate') &&
github.event_name == 'pull_request' &&
( (
(github.event.action == 'synchronize' && steps.org_member.outputs.result == 'false') || (github.event.action == 'synchronize' && steps.org_member.outputs.result == 'false') ||
(contains(github.event.pull_request.body, (contains(github.event.pull_request.body,
+8 -2
View File
@@ -36,11 +36,17 @@ jobs:
dependabot-rebase: dependabot-rebase:
name: Dependabot Rebase name: Dependabot Rebase
if: >- if: >-
startsWith(github.repository, 'LizardByte/') && startsWith(github.repository, 'LizardByte/')
contains(github.event.pull_request.labels.*.name, 'central_dependency') == false
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: check labels
id: label
run: |
echo "central_dep=${{ contains(github.event.pull_request.labels.*.name, 'central_dependency') }}" \
>> $GITHUB_OUTPUT
- name: rebase - name: rebase
if: ${{ steps.label.outputs.central_dep == false }}
uses: "bbeesley/gha-auto-dependabot-rebase@v1.2.0" uses: "bbeesley/gha-auto-dependabot-rebase@v1.2.0"
env: env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
+2 -2
View File
@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Stale - name: Stale
uses: actions/stale@v6 uses: actions/stale@v7
with: with:
close-issue-message: > close-issue-message: >
This issue was closed because it has been stalled for 10 days with no activity. This issue was closed because it has been stalled for 10 days with no activity.
@@ -38,7 +38,7 @@ jobs:
repo-token: ${{ secrets.GH_BOT_TOKEN }} repo-token: ${{ secrets.GH_BOT_TOKEN }}
- name: Invalid Template - name: Invalid Template
uses: actions/stale@v6 uses: actions/stale@v7
with: with:
close-issue-message: > close-issue-message: >
This issue was closed because the the template was not completed after 5 days. This issue was closed because the the template was not completed after 5 days.