1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-15 11:04:13 +02:00

Merge pull request #2310 from ReenigneArcher/ci/workflows/update-deprecated-actions

ci(workflows): update deprecated actions
This commit is contained in:
Alex Canales
2025-02-08 21:54:10 -05:00
committed by GitHub
9 changed files with 65 additions and 65 deletions

View File

@@ -5,8 +5,8 @@ jobs:
name: Get Fonts From Icomoon name: Get Fonts From Icomoon
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.10'
@@ -26,14 +26,14 @@ jobs:
./devicon.json ./icons ./ $GITHUB_TOKEN --headless ./devicon.json ./icons ./ $GITHUB_TOKEN --headless
- name: Upload geckodriver.log for debugging purposes - name: Upload geckodriver.log for debugging purposes
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: geckodriver-log name: geckodriver-log
path: ./geckodriver.log path: ./geckodriver.log
- name: Upload log file for debugging purposes - name: Upload log file for debugging purposes
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
if: always() if: always()
with: with:
name: logfile name: logfile
@@ -62,7 +62,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
if: success() if: success()
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v7
env: env:
MESSAGE: | MESSAGE: |
Hello, Hello,

View File

@@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest 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 if: startsWith(github.event.pull_request.title, 'new icon') || startsWith(github.event.pull_request.title, 'update icon') # only checks icon PR
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Check if PR is develop - name: Check if PR is develop
if: ${{ github.base_ref != '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 -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 echo "wrong_branch=true" >> $GITHUB_ENV
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
if: ${{ !env.wrong_branch }} if: ${{ !env.wrong_branch }}
with: with:
python-version: 3.8 python-version: 3.8
@@ -32,7 +32,7 @@ jobs:
run: python ./.github/scripts/check_icon_pr.py "$PR_TITLE" ./icons ./devicon.json run: python ./.github/scripts/check_icon_pr.py "$PR_TITLE" ./icons ./devicon.json
- name: Upload the err messages - name: Upload the err messages
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: success() if: success()
with: with:
name: err_messages name: err_messages
@@ -46,7 +46,7 @@ jobs:
run: echo $PR_NUM > pr_num.txt run: echo $PR_NUM > pr_num.txt
- name: Upload the pr num - name: Upload the pr num
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
if: success() if: success()
with: with:
name: pr_num name: pr_num

View File

@@ -15,7 +15,7 @@ jobs:
security-events: write security-events: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2
@@ -31,10 +31,10 @@ jobs:
security-events: write security-events: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
id: setup-python id: setup-python
with: with:
python-version: '3.10' python-version: '3.10'
@@ -65,7 +65,7 @@ jobs:
security-events: write security-events: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Find Python files outside the .github folder - name: Find Python files outside the .github folder
id: find_files id: find_files

View File

@@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Setup Python v3.8 - name: Setup Python v3.8
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.8 python-version: 3.8
@@ -28,7 +28,7 @@ jobs:
pip install -r ./.github/scripts/requirements.txt pip install -r ./.github/scripts/requirements.txt
- name: Download workflow artifact - name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2.11.0 uses: dawidd6/action-download-artifact@v7
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: peek_icons.yml workflow: peek_icons.yml

View File

@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Save the PR number in an artifact - name: Save the PR number in an artifact
shell: bash shell: bash
@@ -18,7 +18,7 @@ jobs:
run: echo $PR_NUM > pr_num.txt run: echo $PR_NUM > pr_num.txt
- name: Upload the PR number - name: Upload the PR number
uses: actions/upload-artifact@v2.2.4 uses: actions/upload-artifact@v4
with: with:
name: pr_num name: pr_num
path: ./pr_num.txt path: ./pr_num.txt

View File

@@ -7,13 +7,13 @@ jobs:
environment: release environment: release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
# "ref" specifies the branch to check out. # "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted # "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }} ref: ${{ github.event.release.target_commitish }}
- name: Use Node.js v16 - name: Use Node.js v16
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 16
registry-url: https://registry.npmjs.org/ # Specifies the registry, this field is required! registry-url: https://registry.npmjs.org/ # Specifies the registry, this field is required!

View File

@@ -11,10 +11,10 @@ jobs:
if: github.event.label.name == 'bot:peek' if: github.event.label.name == 'bot:peek'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Setup Python v3.8 - name: Setup Python v3.8
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.8 python-version: 3.8
@@ -30,7 +30,7 @@ jobs:
run: echo $PR_NUM > pr_num.txt run: echo $PR_NUM > pr_num.txt
- name: Upload the PR number - name: Upload the PR number
uses: actions/upload-artifact@v2.2.4 uses: actions/upload-artifact@v4
with: with:
name: pr_num name: pr_num
path: ./pr_num.txt path: ./pr_num.txt
@@ -45,21 +45,21 @@ jobs:
./devicon.json ./icons ./ --headless "$PR_TITLE" ./devicon.json ./icons ./ --headless "$PR_TITLE"
- name: Upload the err messages (created by icomoon_peek.py) - name: Upload the err messages (created by icomoon_peek.py)
uses: actions/upload-artifact@v2.2.4 uses: actions/upload-artifact@v4
if: always() if: always()
with: with:
name: err_messages name: err_messages
path: ./err_messages.txt path: ./err_messages.txt
- name: Upload screenshots for comments - name: Upload screenshots for comments
uses: actions/upload-artifact@v2.2.4 uses: actions/upload-artifact@v4
if: success() if: success()
with: with:
name: screenshots name: screenshots
path: ./screenshots/*.png path: ./screenshots/*.png
- name: Upload geckodriver.log for debugging purposes - name: Upload geckodriver.log for debugging purposes
uses: actions/upload-artifact@v2.2.4 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: geckodriver-log name: geckodriver-log

View File

@@ -14,7 +14,7 @@ jobs:
uses: cutenode/action-always-fail@v1.0.1 uses: cutenode/action-always-fail@v1.0.1
- name: Download workflow artifact - name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2.27.0 uses: dawidd6/action-download-artifact@v7
if: success() if: success()
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -20,7 +20,7 @@ jobs:
run: echo $PEEK_STATUS run: echo $PEEK_STATUS
- name: Download workflow artifact - name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2.27.0 uses: dawidd6/action-download-artifact@v7
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: peek_icons.yml workflow: peek_icons.yml