Skip to content

Commit 97f1100

Browse files
committed
Merge branch 'main' of github.com:billogram/github-actions-cache
2 parents b61db49 + 3f69674 commit 97f1100

File tree

103 files changed

+271830
-115366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+271830
-115366
lines changed

.devcontainer/devcontainer.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Node.js & TypeScript",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:16-bullseye",
4+
// Features to add to the dev container. More info: https://containers.dev/implementors/features.
5+
// "features": {},
6+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
7+
// "forwardPorts": [],
8+
// Use 'postCreateCommand' to run commands after the container is created.
9+
"postCreateCommand": "npm install"
10+
// Configure tool-specific properties.
11+
// "customizations": {},
12+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
13+
// "remoteUser": "root"
14+
}

.github/auto_assign.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
groups:
13+
minor-actions-dependencies:
14+
update-types: [minor, patch]
15+
16+
- package-ecosystem: "npm"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
allow:
21+
- dependency-type: direct
22+
- dependency-type: production

.github/pull_request_template.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
<!--- Describe your changes in detail -->
5+
6+
## Motivation and Context
7+
<!--- Why is this change required? What problem does it solve? -->
8+
<!--- If it fixes an open issue, please link to the issue here. -->
9+
10+
## How Has This Been Tested?
11+
<!--- Please describe in detail how you tested your changes. -->
12+
<!--- Include details of your testing environment, and the tests you ran to -->
13+
<!--- see how your change affects other areas of the code, etc. -->
14+
15+
## Screenshots (if appropriate):
16+
17+
## Types of changes
18+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
19+
- [ ] Bug fix (non-breaking change which fixes an issue)
20+
- [ ] New feature (non-breaking change which adds functionality)
21+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
22+
- [ ] Documentation (add or update README or docs)
23+
24+
## Checklist:
25+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
26+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
27+
- [ ] My code follows the code style of this project.
28+
- [ ] My change requires a change to the documentation.
29+
- [ ] I have updated the documentation accordingly.
30+
- [ ] I have read the **CONTRIBUTING** document.
31+
- [ ] I have added tests to cover my changes.
32+
- [ ] All new and existing tests passed.

.github/workflows/auto-assign-issues.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/auto-assign.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/check-dist.yml

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# `dist/index.js` is a special file in Actions.
2-
# When you reference an action with `uses:` in a workflow,
3-
# `index.js` is the code that will run.
4-
# For our project, we generate this file through a build process
5-
# from other source files.
6-
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
71
name: Check dist/
82

93
on:
@@ -18,32 +12,8 @@ on:
1812
workflow_dispatch:
1913

2014
jobs:
21-
check-dist:
22-
runs-on: ubuntu-latest
23-
24-
steps:
25-
- uses: actions/checkout@v3
26-
- name: Setup Node.js 16.x
27-
uses: actions/setup-node@v3
28-
with:
29-
node-version: 16.x
30-
- name: Install dependencies
31-
run: npm ci
32-
- name: Rebuild the dist/ directory
33-
run: npm run build
34-
35-
- name: Compare the expected and actual dist/ directories
36-
run: |
37-
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
38-
echo "Detected uncommitted changes after build. See status below:"
39-
git diff
40-
exit 1
41-
fi
42-
id: diff
43-
44-
# If index.js was different than expected, upload the expected version as an artifact
45-
- uses: actions/upload-artifact@v3
46-
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
47-
with:
48-
name: dist
49-
path: dist/
15+
call-check-dist:
16+
name: Check dist/
17+
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
18+
with:
19+
node-version: "20.x"

.github/workflows/close-inactive-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
issues: write
1111
pull-requests: write
1212
steps:
13-
- uses: actions/stale@v3
13+
- uses: actions/stale@v9
1414
with:
1515
days-before-issue-stale: 200
1616
days-before-issue-close: 5

.github/workflows/codeql.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,39 @@ on:
88

99
jobs:
1010
CodeQL-Build:
11-
12-
# CodeQL runs on ubuntu-latest and windows-latest
11+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1312
runs-on: ubuntu-latest
1413

14+
permissions:
15+
# required for all workflows
16+
security-events: write
17+
1518
steps:
1619
- name: Checkout repository
17-
uses: actions/checkout@v3
18-
with:
19-
# We must fetch at least the immediate parents so that if this is
20-
# a pull request then we can checkout the head.
21-
fetch-depth: 2
22-
23-
# If this run was triggered by a pull request event, then checkout
24-
# the head of the pull request instead of the merge commit.
25-
- run: git checkout HEAD^2
26-
if: ${{ github.event_name == 'pull_request' }}
20+
uses: actions/checkout@v4
2721

2822
# Initializes the CodeQL tools for scanning.
2923
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v1
24+
uses: github/codeql-action/init@v3
3125
# Override language selection by uncommenting this and choosing your languages
3226
# with:
33-
# languages: go, javascript, csharp, python, cpp, java
27+
# languages: go, javascript, csharp, python, cpp, java, ruby
3428

35-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
36-
# If this step fails, then you should remove it and run the build manually (see below)
29+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
30+
# If this step fails, then you should remove it and run the build manually (see below).
3731
- name: Autobuild
38-
uses: github/codeql-action/autobuild@v1
32+
uses: github/codeql-action/autobuild@v3
3933

4034
# ℹ️ Command-line programs to run using the OS shell.
41-
# 📚 https://git.io/JvXDl
35+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
4236

43-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
44-
# and modify them (or add more) to build your code if your project
45-
# uses a compiled language
37+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
38+
# three lines and modify them (or add more) to build your code if your
39+
# project uses a compiled language
4640

4741
#- run: |
48-
# make bootstrap
49-
# make release
42+
# make bootstrap
43+
# make release
5044

5145
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v1
46+
uses: github/codeql-action/analyze@v3
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Assign issue
2+
on:
3+
issues:
4+
types: [opened]
5+
jobs:
6+
run-action:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Get current oncall
10+
id: oncall
11+
run: |
12+
echo "CURRENT=$(curl --request GET 'https://api.pagerduty.com/oncalls?include[]=users&schedule_ids[]=P5VG2BX&earliest=true' --header 'Authorization: Token token=${{ secrets.PAGERDUTY_TOKEN }}' --header 'Accept: application/vnd.pagerduty+json;version=2' --header 'Content-Type: application/json' | jq -r '.oncalls[].user.name')" >> $GITHUB_OUTPUT
13+
14+
- name: add_assignees
15+
run: |
16+
curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.issue.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}'

0 commit comments

Comments
 (0)