Skip to content

Commit

Permalink
Merge branch 'main' into j-s/deliver-indictment-assigned-roles
Browse files Browse the repository at this point in the history
  • Loading branch information
unakb authored Jun 18, 2024
2 parents a68f883 + eb70c65 commit cc09370
Show file tree
Hide file tree
Showing 195 changed files with 6,065 additions and 1,597 deletions.
41 changes: 41 additions & 0 deletions .github/actions/get-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'Get Cache Keys'
description: 'Action to get cache'
inputs:
github-token:
description: 'GitHub token'
required: true
enable-cache:
description: 'Enable cache'
default: ''
keys:
description: 'Keys'
default: 'false'
outputs:
keys:
description: 'Keys'
value: ${{ steps.prepare.outputs._CACHE_KEYS }}
runs:
using: 'composite'
steps:
- name: Adding required env vars
uses: actions/github-script@v7
env:
github-token: ${{ inputs.GITHUB_TOKEN }}
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', 'https://cache.dev01.devland.is/')
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'])
core.exportVariable('ACTIONS_RUNTIME_URL', process.env['ACTIONS_RUNTIME_URL'])
- name: Get cache
id: prepare
shell: bash
env:
_CACHE_KEYS: ${{ inputs.keys }}
ENABLE_CACHE: ${{ inputs.enable-cache }}
NODE_OPTIONS: --max-old-space-size=8192
run: |
echo $_CACHE_KEYS
cd scripts/ci/cache
yarn install --immutable
node cache-action.mjs
echo $_CACHE_KEYS
2 changes: 1 addition & 1 deletion .github/actions/unit-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ runs:

- name: Cached codecov uploader
id: codecov-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: codecov
key: ${{ runner.os }}-codeconv-${{ env.CODECOV_REV }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/config-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.DIRTY_FIX_BOT_TOKEN }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ github.event_name != 'pull_request' }}

- uses: actions/setup-node@v4
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.prepare.outputs.ENVS) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/external-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if codeowners file changed
Expand Down
Loading

0 comments on commit cc09370

Please sign in to comment.