ci: upgrade workflow actions version

This commit is contained in:
lowlighter
2022-12-01 19:40:52 -05:00
parent 7f5128dc2e
commit d8d44a14c7
11 changed files with 42 additions and 33 deletions

View File

@@ -41,7 +41,7 @@ jobs:
if: "github.repository == 'lowlighter/metrics'" if: "github.repository == 'lowlighter/metrics'"
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Checkout examples - name: Checkout examples
@@ -68,6 +68,15 @@ jobs:
git commit -m "chore: update examples" git commit -m "chore: update examples"
git push --force git push --force
set +e
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git pull
sudo cp /metrics_renders/* ./
git add --all
git commit -m "chore: update examples"
git push --force
# ====================================================================================== # ======================================================================================
# Special job used to render lowlighter/metrics repository assets # Special job used to render lowlighter/metrics repository assets
# ====================================================================================== # ======================================================================================
@@ -78,7 +87,7 @@ jobs:
if: "github.repository == 'lowlighter/metrics'" if: "github.repository == 'lowlighter/metrics'"
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Checkout examples - name: Checkout examples

View File

@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Comment on pull request - name: Comment on pull request
uses: actions/github-script@v5 uses: actions/github-script@v6
with: with:
script: | script: |
const {issue:{number:issue_number}, repo:{owner, repo}} = context const {issue:{number:issue_number}, repo:{owner, repo}} = context

View File

@@ -20,7 +20,7 @@ jobs:
if: always() && (needs.build-test-analyze.result == 'success' || needs.build-test-analyze.result == 'skipped') if: always() && (needs.build-test-analyze.result == 'success' || needs.build-test-analyze.result == 'skipped')
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Dprint - name: Setup Dprint
@@ -50,11 +50,11 @@ jobs:
needs: [ format ] needs: [ format ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 17 node-version: 17
- name: Pull changes - name: Pull changes
@@ -73,11 +73,11 @@ jobs:
needs: [ update-indexes ] needs: [ update-indexes ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 17 node-version: 17
- name: Pull - name: Pull
@@ -96,7 +96,7 @@ jobs:
needs: [ update-indexes ] needs: [ update-indexes ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Login to GitHub registry - name: Login to GitHub registry
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build docker image - name: Build docker image
@@ -180,7 +180,7 @@ jobs:
if: contains(github.event.head_commit.message, '[release]') if: contains(github.event.head_commit.message, '[release]')
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Login to GitHub registry - name: Login to GitHub registry
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Pull docker image (master) - name: Pull docker image (master)
@@ -201,11 +201,11 @@ jobs:
needs: [ docker-release ] needs: [ docker-release ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 17 node-version: 17
- name: Setup metrics - name: Setup metrics
@@ -254,9 +254,9 @@ jobs:
needs: [ action-latest-test, deploy-latest ] needs: [ action-latest-test, deploy-latest ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 17 node-version: 17
- name: Setup metrics - name: Setup metrics

View File

@@ -13,7 +13,7 @@ jobs:
continue-on-error: true continue-on-error: true
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Run script - name: Run script
run: ./delete_ghcr_dangling_images.sh lowlighter metrics run: ./delete_ghcr_dangling_images.sh lowlighter metrics
working-directory: .github/actions/ghcr-clean working-directory: .github/actions/ghcr-clean

View File

@@ -10,11 +10,11 @@ jobs:
if: "github.repository == 'lowlighter/metrics'" if: "github.repository == 'lowlighter/metrics'"
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 17 node-version: 17
- name: Setup metrics - name: Setup metrics

View File

@@ -41,7 +41,7 @@ jobs:
if: "github.repository == 'lowlighter/metrics'" if: "github.repository == 'lowlighter/metrics'"
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Checkout examples - name: Checkout examples
@@ -1347,7 +1347,7 @@ jobs:
if: "github.repository == 'lowlighter/metrics'" if: "github.repository == 'lowlighter/metrics'"
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Checkout examples - name: Checkout examples

View File

@@ -7,7 +7,7 @@ jobs:
name: Label issue and pull requests name: Label issue and pull requests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/labeler@v2 - uses: actions/labeler@v4
with: with:
repo-token: "${{ secrets.GITHUB_TOKEN }}" repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/config/label.yml configuration-path: .github/config/label.yml

View File

@@ -40,7 +40,7 @@ jobs:
continue-on-error: true continue-on-error: true
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Run script - name: Run script
run: ./delete_workflows.sh lowlighter/metrics run: ./delete_workflows.sh lowlighter/metrics
working-directory: .github/actions/ghcr-clean working-directory: .github/actions/ghcr-clean

View File

@@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
ref: master ref: master
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 17 node-version: 17
- name: Setup metrics - name: Setup metrics

View File

@@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup NodeJS - name: Setup NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: 17 node-version: 17
- name: Setup metrics - name: Setup metrics
@@ -36,7 +36,7 @@ jobs:
needs: [ lint ] needs: [ lint ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Format code with dprint - name: Format code with dprint
run: | run: |
curl -fsSL https://dprint.dev/install.sh | sh curl -fsSL https://dprint.dev/install.sh | sh
@@ -55,7 +55,7 @@ jobs:
needs: [ lint ] needs: [ lint ]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Setup CodeQL - name: Setup CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2
with: with:

View File

@@ -368,7 +368,7 @@ metrics:
contents: write contents: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0