mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Update workflow versions (#5789)
* Update auto_labeler_issues.yml * Update auto_labeler_pr.yml * Update codeql-analysis.yml * Update crowdin_upload_strings.yml * Update lint_python.yaml * Update prepare_release.yml * Update publish_release.yml * Update tests.yml * Update for breaking change in actions/github-script@v5 Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
parent
ccec53eef3
commit
febc503df1
4
.github/workflows/auto_labeler_issues.yml
vendored
4
.github/workflows/auto_labeler_issues.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Apply Triage Label
|
- name: Apply Triage Label
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
script: |
|
script: |
|
||||||
@ -21,7 +21,7 @@ jobs:
|
|||||||
console.log('Issue already has Status label, skipping...');
|
console.log('Issue already has Status label, skipping...');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
github.issues.addLabels({
|
github.rest.issues.addLabels({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
2
.github/workflows/auto_labeler_pr.yml
vendored
2
.github/workflows/auto_labeler_pr.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Apply Type Label
|
- name: Apply Type Label
|
||||||
uses: actions/labeler@v3
|
uses: actions/labeler@v4
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
sync-labels: "" # this is a temporary workaround, see #4844
|
sync-labels: "" # this is a temporary workaround, see #4844
|
||||||
|
|||||||
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@ -17,10 +17,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.8"
|
python-version: "3.8"
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v2
|
||||||
with:
|
with:
|
||||||
languages: 'python'
|
languages: 'python'
|
||||||
# Override the default behavior so that the action doesn't attempt
|
# Override the default behavior so that the action doesn't attempt
|
||||||
@ -55,4 +55,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v2
|
||||||
|
|||||||
4
.github/workflows/crowdin_upload_strings.yml
vendored
4
.github/workflows/crowdin_upload_strings.yml
vendored
@ -9,9 +9,9 @@ jobs:
|
|||||||
if: github.repository == 'Cog-Creators/Red-DiscordBot'
|
if: github.repository == 'Cog-Creators/Red-DiscordBot'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
4
.github/workflows/lint_python.yaml
vendored
4
.github/workflows/lint_python.yaml
vendored
@ -14,10 +14,10 @@ jobs:
|
|||||||
name: Lint Python
|
name: Lint Python
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.ref }}
|
ref: ${{ env.ref }}
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.8"
|
python-version: "3.8"
|
||||||
- run: "python -m pip install git+https://github.com/pycqa/pyflakes@1911c20#egg=pyflakes git+https://github.com/pycqa/pycodestyle@d219c68#egg=pycodestyle git+https://gitlab.com/pycqa/flake8@3.7.9#egg=flake8"
|
- run: "python -m pip install git+https://github.com/pycqa/pyflakes@1911c20#egg=pyflakes git+https://github.com/pycqa/pycodestyle@d219c68#egg=pycodestyle git+https://gitlab.com/pycqa/flake8@3.7.9#egg=flake8"
|
||||||
|
|||||||
18
.github/workflows/prepare_release.yml
vendored
18
.github/workflows/prepare_release.yml
vendored
@ -16,9 +16,9 @@ jobs:
|
|||||||
needs: pr_stable_bump
|
needs: pr_stable_bump
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@ -41,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: cpr_crowdin
|
id: cpr_crowdin
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Automated Crowdin downstream
|
commit-message: Automated Crowdin downstream
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
milestone: ${{ needs.pr_stable_bump.outputs.milestone_number }}
|
milestone: ${{ needs.pr_stable_bump.outputs.milestone_number }}
|
||||||
|
|
||||||
- name: Close and reopen the PR with different token to trigger CI
|
- name: Close and reopen the PR with different token to trigger CI
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ steps.cpr_crowdin.outputs.pull-request-number }}
|
PR_NUMBER: ${{ steps.cpr_crowdin.outputs.pull-request-number }}
|
||||||
PR_OPERATION: ${{ steps.cpr_crowdin.outputs.pull-request-operation }}
|
PR_OPERATION: ${{ steps.cpr_crowdin.outputs.pull-request-operation }}
|
||||||
@ -73,9 +73,9 @@ jobs:
|
|||||||
milestone_number: ${{ steps.get_milestone_number.outputs.result }}
|
milestone_number: ${{ steps.get_milestone_number.outputs.result }}
|
||||||
steps:
|
steps:
|
||||||
# Checkout repository and install Python
|
# Checkout repository and install Python
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ jobs:
|
|||||||
# Get milestone number of the milestone for the new stable version
|
# Get milestone number of the milestone for the new stable version
|
||||||
- name: Get milestone number
|
- name: Get milestone number
|
||||||
id: get_milestone_number
|
id: get_milestone_number
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
MILESTONE_TITLE: ${{ steps.bump_version_stable.outputs.new_version }}
|
MILESTONE_TITLE: ${{ steps.bump_version_stable.outputs.new_version }}
|
||||||
with:
|
with:
|
||||||
@ -103,7 +103,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: cpr_bump_stable
|
id: cpr_bump_stable
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Version bump to ${{ steps.bump_version_stable.outputs.new_version }}
|
commit-message: Version bump to ${{ steps.bump_version_stable.outputs.new_version }}
|
||||||
@ -117,7 +117,7 @@ jobs:
|
|||||||
milestone: ${{ steps.get_milestone_number.outputs.result }}
|
milestone: ${{ steps.get_milestone_number.outputs.result }}
|
||||||
|
|
||||||
- name: Close and reopen the PR with different token to trigger CI
|
- name: Close and reopen the PR with different token to trigger CI
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ steps.cpr_bump_stable.outputs.pull-request-number }}
|
PR_NUMBER: ${{ steps.cpr_bump_stable.outputs.pull-request-number }}
|
||||||
PR_OPERATION: ${{ steps.cpr_bump_stable.outputs.pull-request-operation }}
|
PR_OPERATION: ${{ steps.cpr_bump_stable.outputs.pull-request-operation }}
|
||||||
|
|||||||
18
.github/workflows/publish_release.yml
vendored
18
.github/workflows/publish_release.yml
vendored
@ -11,9 +11,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout repository and install Python
|
# Checkout repository and install Python
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
|
||||||
@ -59,9 +59,9 @@ jobs:
|
|||||||
name: Release to PyPI
|
name: Release to PyPI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@ -90,11 +90,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "BASE_BRANCH=${TAG_BASE_BRANCH#'refs/heads/'}" >> $GITHUB_ENV
|
echo "BASE_BRANCH=${TAG_BASE_BRANCH#'refs/heads/'}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.BASE_BRANCH }}
|
ref: ${{ env.BASE_BRANCH }}
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ jobs:
|
|||||||
# Get milestone number of the milestone for the old version
|
# Get milestone number of the milestone for the old version
|
||||||
- name: Get milestone number
|
- name: Get milestone number
|
||||||
id: get_milestone_number
|
id: get_milestone_number
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
MILESTONE_TITLE: ${{ steps.bump_version_dev.outputs.old_version }}
|
MILESTONE_TITLE: ${{ steps.bump_version_dev.outputs.old_version }}
|
||||||
with:
|
with:
|
||||||
@ -122,7 +122,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
id: cpr_bump_dev
|
id: cpr_bump_dev
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Version bump to ${{ steps.bump_version_dev.outputs.new_version }}
|
commit-message: Version bump to ${{ steps.bump_version_dev.outputs.new_version }}
|
||||||
@ -137,7 +137,7 @@ jobs:
|
|||||||
base: ${{ env.BASE_BRANCH }}
|
base: ${{ env.BASE_BRANCH }}
|
||||||
|
|
||||||
- name: Close and reopen the PR with different token to trigger CI
|
- name: Close and reopen the PR with different token to trigger CI
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ steps.cpr_bump_dev.outputs.pull-request-number }}
|
PR_NUMBER: ${{ steps.cpr_bump_dev.outputs.pull-request-number }}
|
||||||
PR_OPERATION: ${{ steps.cpr_bump_dev.outputs.pull-request-operation }}
|
PR_OPERATION: ${{ steps.cpr_bump_dev.outputs.pull-request-operation }}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ module.exports = (async function ({github, context}) {
|
|||||||
if (sleep_time)
|
if (sleep_time)
|
||||||
await new Promise(r => setTimeout(r, sleep_time));
|
await new Promise(r => setTimeout(r, sleep_time));
|
||||||
|
|
||||||
github.issues.update({
|
github.rest.issues.update({
|
||||||
issue_number: pr_number,
|
issue_number: pr_number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -36,11 +36,11 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
name: Tox - ${{ matrix.friendly_name }}
|
name: Tox - ${{ matrix.friendly_name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.ref }}
|
ref: ${{ env.ref }}
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python_version }}
|
python-version: ${{ matrix.python_version }}
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
@ -72,11 +72,11 @@ jobs:
|
|||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.ref }}
|
ref: ${{ env.ref }}
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python_version }}
|
python-version: ${{ matrix.python_version }}
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user