ci: upgrade workflow actions version
This commit is contained in:
13
.github/scripts/files/examples.yml
vendored
13
.github/scripts/files/examples.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/branches.yml
vendored
2
.github/workflows/branches.yml
vendored
@@ -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
|
||||||
|
|||||||
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/clean.yml
vendored
2
.github/workflows/clean.yml
vendored
@@ -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
|
||||||
|
|||||||
4
.github/workflows/examples.presets.yml
vendored
4
.github/workflows/examples.presets.yml
vendored
@@ -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
|
||||||
|
|||||||
4
.github/workflows/examples.yml
vendored
4
.github/workflows/examples.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/label.yml
vendored
2
.github/workflows/label.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -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
|
||||||
|
|||||||
4
.github/workflows/test.presets.yml
vendored
4
.github/workflows/test.presets.yml
vendored
@@ -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
|
||||||
|
|||||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -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:
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ These options support two different syntaxes:
|
|||||||
Skip repositories by:
|
Skip repositories by:
|
||||||
- using their full handle (e.g. `user/repo`)
|
- using their full handle (e.g. `user/repo`)
|
||||||
- using only their name (e.g. `repo`)
|
- using only their name (e.g. `repo`)
|
||||||
- *in this case, the owner may be implicitly set to current `user` option*
|
- *in this case, the owner may be implicitly set to current `user` option*
|
||||||
|
|
||||||
*Example: skipping repositories with basic pattern matching*
|
*Example: skipping repositories with basic pattern matching*
|
||||||
```yml
|
```yml
|
||||||
@@ -81,7 +81,7 @@ repositories_skipped: my-repo, user/my-repo
|
|||||||
|
|
||||||
To enable advanced pattern matching to skip repositories, include `@use.patterns` at the beginning of the option value.
|
To enable advanced pattern matching to skip repositories, include `@use.patterns` at the beginning of the option value.
|
||||||
|
|
||||||
Skip repositories by writing file-glob patterns, with any of the supported operation:
|
Skip repositories by writing file-glob patterns, with any of the supported operation:
|
||||||
- `#` to write comments
|
- `#` to write comments
|
||||||
- `-` to exclude repositories
|
- `-` to exclude repositories
|
||||||
- *the `-` is implicit and may be omitted from excluding patterns*
|
- *the `-` is implicit and may be omitted from excluding patterns*
|
||||||
@@ -93,15 +93,15 @@ Skip repositories by writing file-glob patterns, with any of the supported opera
|
|||||||
```yml
|
```yml
|
||||||
repositories_skipped: |
|
repositories_skipped: |
|
||||||
@use.patterns
|
@use.patterns
|
||||||
|
|
||||||
# Skip a specific repository (both patterns are equivalent)
|
# Skip a specific repository (both patterns are equivalent)
|
||||||
user/repo
|
user/repo
|
||||||
-user/repo
|
-user/repo
|
||||||
|
|
||||||
# Skip repositories matching a given pattern
|
# Skip repositories matching a given pattern
|
||||||
user/repo-*
|
user/repo-*
|
||||||
{user1, user2, user3}/*
|
{user1, user2, user3}/*
|
||||||
|
|
||||||
# Include back a previously skipped repository
|
# Include back a previously skipped repository
|
||||||
org/repo
|
org/repo
|
||||||
+org/include-this-repo
|
+org/include-this-repo
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user