mirror of
https://github.com/konpa/devicon.git
synced 2025-08-14 10:34:14 +02:00
Merge pull request #2310 from ReenigneArcher/ci/workflows/update-deprecated-actions
ci(workflows): update deprecated actions
This commit is contained in:
10
.github/workflows/build_icons.yml
vendored
10
.github/workflows/build_icons.yml
vendored
@@ -5,8 +5,8 @@ jobs:
|
||||
name: Get Fonts From Icomoon
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
@@ -26,14 +26,14 @@ jobs:
|
||||
./devicon.json ./icons ./ $GITHUB_TOKEN --headless
|
||||
|
||||
- name: Upload geckodriver.log for debugging purposes
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: geckodriver-log
|
||||
path: ./geckodriver.log
|
||||
|
||||
- name: Upload log file for debugging purposes
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: logfile
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
|
||||
- name: Create Pull Request
|
||||
if: success()
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
env:
|
||||
MESSAGE: |
|
||||
Hello,
|
||||
|
8
.github/workflows/check_icon_pr.yml
vendored
8
.github/workflows/check_icon_pr.yml
vendored
@@ -6,7 +6,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.event.pull_request.title, 'new icon') || startsWith(github.event.pull_request.title, 'update icon') # only checks icon PR
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Check if PR is develop
|
||||
if: ${{ github.base_ref != 'develop' }}
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
echo -e "The PR's base branch is \`${{ github.base_ref }}\`, but should be \`develop\`\nPlease change the PR so that it's based on, and merged into \`develop\`" > ./err_messages.txt
|
||||
echo "wrong_branch=true" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/setup-python@v5
|
||||
if: ${{ !env.wrong_branch }}
|
||||
with:
|
||||
python-version: 3.8
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
run: python ./.github/scripts/check_icon_pr.py "$PR_TITLE" ./icons ./devicon.json
|
||||
|
||||
- name: Upload the err messages
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: success()
|
||||
with:
|
||||
name: err_messages
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
run: echo $PR_NUM > pr_num.txt
|
||||
|
||||
- name: Upload the pr num
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
if: success()
|
||||
with:
|
||||
name: pr_num
|
||||
|
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
@@ -31,10 +31,10 @@ jobs:
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
id: setup-python
|
||||
with:
|
||||
python-version: '3.10'
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Find Python files outside the .github folder
|
||||
id: find_files
|
||||
|
6
.github/workflows/in_develop_labeler.yml
vendored
6
.github/workflows/in_develop_labeler.yml
vendored
@@ -15,10 +15,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python v3.8
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
pip install -r ./.github/scripts/requirements.txt
|
||||
|
||||
- name: Download workflow artifact
|
||||
uses: dawidd6/action-download-artifact@v2.11.0
|
||||
uses: dawidd6/action-download-artifact@v7
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
workflow: peek_icons.yml
|
||||
|
@@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.merged == true
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Save the PR number in an artifact
|
||||
shell: bash
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
run: echo $PR_NUM > pr_num.txt
|
||||
|
||||
- name: Upload the PR number
|
||||
uses: actions/upload-artifact@v2.2.4
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: pr_num
|
||||
path: ./pr_num.txt
|
||||
|
4
.github/workflows/npm_publish.yml
vendored
4
.github/workflows/npm_publish.yml
vendored
@@ -7,13 +7,13 @@ jobs:
|
||||
environment: release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# "ref" specifies the branch to check out.
|
||||
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
|
||||
ref: ${{ github.event.release.target_commitish }}
|
||||
- name: Use Node.js v16
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: https://registry.npmjs.org/ # Specifies the registry, this field is required!
|
||||
|
14
.github/workflows/peek_icons.yml
vendored
14
.github/workflows/peek_icons.yml
vendored
@@ -1,7 +1,7 @@
|
||||
name: Peek Icons
|
||||
on:
|
||||
pull_request:
|
||||
types: [labeled]
|
||||
types: [labeled]
|
||||
jobs:
|
||||
peek:
|
||||
# four outcomes: successful check and upload,
|
||||
@@ -11,10 +11,10 @@ jobs:
|
||||
if: github.event.label.name == 'bot:peek'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python v3.8
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
run: echo $PR_NUM > pr_num.txt
|
||||
|
||||
- name: Upload the PR number
|
||||
uses: actions/upload-artifact@v2.2.4
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: pr_num
|
||||
path: ./pr_num.txt
|
||||
@@ -45,21 +45,21 @@ jobs:
|
||||
./devicon.json ./icons ./ --headless "$PR_TITLE"
|
||||
|
||||
- name: Upload the err messages (created by icomoon_peek.py)
|
||||
uses: actions/upload-artifact@v2.2.4
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: err_messages
|
||||
path: ./err_messages.txt
|
||||
|
||||
- name: Upload screenshots for comments
|
||||
uses: actions/upload-artifact@v2.2.4
|
||||
uses: actions/upload-artifact@v4
|
||||
if: success()
|
||||
with:
|
||||
name: screenshots
|
||||
path: ./screenshots/*.png
|
||||
|
||||
- name: Upload geckodriver.log for debugging purposes
|
||||
uses: actions/upload-artifact@v2.2.4
|
||||
uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
with:
|
||||
name: geckodriver-log
|
||||
|
@@ -14,7 +14,7 @@ jobs:
|
||||
uses: cutenode/action-always-fail@v1.0.1
|
||||
|
||||
- name: Download workflow artifact
|
||||
uses: dawidd6/action-download-artifact@v2.27.0
|
||||
uses: dawidd6/action-download-artifact@v7
|
||||
if: success()
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
2
.github/workflows/post_peek_screenshot.yml
vendored
2
.github/workflows/post_peek_screenshot.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
run: echo $PEEK_STATUS
|
||||
|
||||
- name: Download workflow artifact
|
||||
uses: dawidd6/action-download-artifact@v2.27.0
|
||||
uses: dawidd6/action-download-artifact@v7
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
workflow: peek_icons.yml
|
||||
|
Reference in New Issue
Block a user