Skip to content

Commit

Permalink
ci: use tags for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Oct 23, 2022
1 parent 21b07d5 commit ef27abe
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-deprecate.yml
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-updater.yml
Expand Up @@ -12,9 +12,9 @@ jobs:
if: github.repository_owner == 'sapphiredev'
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v18
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -16,13 +16,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@807578363a7869ca324a79039e6db9c843e0e100 # tag=v2
uses: github/codeql-action/init@v2

- name: Autobuild
uses: github/codeql-action/autobuild@807578363a7869ca324a79039e6db9c843e0e100 # tag=v2
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@807578363a7869ca324a79039e6db9c843e0e100 # tag=v2
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/continuous-delivery.yml
Expand Up @@ -25,15 +25,15 @@ jobs:
if: github.repository_owner == 'sapphiredev'
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
with:
fetch-depth: 0
repository: ${{ github.event.inputs.repository || 'sapphiredev/utilities' }}
ref: ${{ github.event.inputs.ref || 'main' }}
- name: Add TypeScript problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand All @@ -37,9 +37,9 @@ jobs:
node: [16, 18]
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v{{ matrix.node }}
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
Expand All @@ -52,7 +52,7 @@ jobs:
run: yarn test
- name: Store code coverage report
if: ${{ matrix.node == '18' }}
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage/
Expand All @@ -62,11 +62,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand All @@ -81,9 +81,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand All @@ -99,16 +99,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Download Coverage report
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag=v3
uses: actions/download-artifact@v3
with:
name: coverage
path: coverage/
- name: Codecov Upload
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # tag=v3
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage/
Expand All @@ -119,9 +119,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deprecate-on-merge.yml
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/documentation.yml
Expand Up @@ -23,9 +23,9 @@ jobs:
SHA: ${{ steps.env.outputs.SHA }}
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Build Documentation
run: yarn docs
- name: Upload Documentation Artifacts
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3
uses: actions/upload-artifact@v3
with:
name: docs
path: packages/*/docs/api.json
Expand Down Expand Up @@ -83,22 +83,22 @@ jobs:
SHA: ${{ needs.build.outputs.SHA }}
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Download Documentation Artifacts
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag=v3
uses: actions/download-artifact@v3
with:
name: docs
path: docs
- name: Checkout Documentation Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
with:
repository: 'sapphiredev/docs'
token: ${{ secrets.SKYRA_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/labelsync.yml
Expand Up @@ -12,9 +12,9 @@ jobs:
if: github.repository_owner == 'sapphiredev'
steps:
- name: Checkout Project
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@v3
- name: Run Label Sync
uses: crazy-max/ghaction-github-labeler@77450f9fa47c41fbab15c0923417fff00730ffa3 # tag=v4
uses: crazy-max/ghaction-github-labeler@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml

0 comments on commit ef27abe

Please sign in to comment.