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'"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Checkout examples
|
||||
@@ -68,6 +68,15 @@ jobs:
|
||||
git commit -m "chore: update examples"
|
||||
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
|
||||
# ======================================================================================
|
||||
@@ -78,7 +87,7 @@ jobs:
|
||||
if: "github.repository == 'lowlighter/metrics'"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Checkout examples
|
||||
|
||||
2
.github/workflows/branches.yml
vendored
2
.github/workflows/branches.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Comment on pull request
|
||||
uses: actions/github-script@v5
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
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')
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup Dprint
|
||||
@@ -50,11 +50,11 @@ jobs:
|
||||
needs: [ format ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
- name: Pull changes
|
||||
@@ -73,11 +73,11 @@ jobs:
|
||||
needs: [ update-indexes ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
- name: Pull
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
needs: [ update-indexes ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Login to GitHub registry
|
||||
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
- name: Build docker image
|
||||
@@ -180,7 +180,7 @@ jobs:
|
||||
if: contains(github.event.head_commit.message, '[release]')
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Login to GitHub registry
|
||||
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
- name: Pull docker image (master)
|
||||
@@ -201,11 +201,11 @@ jobs:
|
||||
needs: [ docker-release ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
- name: Setup metrics
|
||||
@@ -254,9 +254,9 @@ jobs:
|
||||
needs: [ action-latest-test, deploy-latest ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
- name: Setup metrics
|
||||
|
||||
2
.github/workflows/clean.yml
vendored
2
.github/workflows/clean.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Run script
|
||||
run: ./delete_ghcr_dangling_images.sh lowlighter metrics
|
||||
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'"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
- 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'"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Checkout examples
|
||||
@@ -1347,7 +1347,7 @@ jobs:
|
||||
if: "github.repository == 'lowlighter/metrics'"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- 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
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/labeler@v2
|
||||
- uses: actions/labeler@v4
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
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
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Run script
|
||||
run: ./delete_workflows.sh lowlighter/metrics
|
||||
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
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: master
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
- name: Setup metrics
|
||||
|
||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -13,11 +13,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 17
|
||||
- name: Setup metrics
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
needs: [ lint ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Format code with dprint
|
||||
run: |
|
||||
curl -fsSL https://dprint.dev/install.sh | sh
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
needs: [ lint ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
|
||||
@@ -68,7 +68,7 @@ These options support two different syntaxes:
|
||||
Skip repositories by:
|
||||
- using their full handle (e.g. `user/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*
|
||||
```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.
|
||||
|
||||
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 exclude repositories
|
||||
- *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
|
||||
repositories_skipped: |
|
||||
@use.patterns
|
||||
|
||||
|
||||
# Skip a specific repository (both patterns are equivalent)
|
||||
user/repo
|
||||
user/repo
|
||||
-user/repo
|
||||
|
||||
# Skip repositories matching a given pattern
|
||||
user/repo-*
|
||||
{user1, user2, user3}/*
|
||||
|
||||
|
||||
# Include back a previously skipped repository
|
||||
org/repo
|
||||
+org/include-this-repo
|
||||
@@ -368,7 +368,7 @@ metrics:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user