Compare commits

..

1 Commits

Author SHA1 Message Date
Felipe Suero 49b80c3ef0 switch all to main and pull 2023-04-17 14:35:54 -04:00
11 changed files with 41 additions and 36 deletions
-2
View File
@@ -1,7 +1,5 @@
# actions/expressions # actions/expressions
blah
`@actions/expressions` is a library to parse and evaluate GitHub Actions [expressions](https://docs.github.com/actions/learn-github-actions/expressions). `@actions/expressions` is a library to parse and evaluate GitHub Actions [expressions](https://docs.github.com/actions/learn-github-actions/expressions).
## Installation ## Installation
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@actions/expressions", "name": "@actions/expressions",
"version": "0.3.4", "version": "0.3.3",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"source": "./src/index.ts", "source": "./src/index.ts",
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@actions/languageserver", "name": "@actions/languageserver",
"version": "0.3.4", "version": "0.3.3",
"description": "Language server for GitHub Actions", "description": "Language server for GitHub Actions",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
@@ -43,8 +43,8 @@
"watch": "tsc --build tsconfig.build.json --watch" "watch": "tsc --build tsconfig.build.json --watch"
}, },
"dependencies": { "dependencies": {
"@actions/languageservice": "^0.3.4", "@actions/languageservice": "^0.3.3",
"@actions/workflow-parser": "^0.3.4", "@actions/workflow-parser": "^0.3.3",
"@octokit/rest": "^19.0.7", "@octokit/rest": "^19.0.7",
"@octokit/types": "^9.0.0", "@octokit/types": "^9.0.0",
"vscode-languageserver": "^8.0.2", "vscode-languageserver": "^8.0.2",
+2 -5
View File
@@ -2,8 +2,8 @@ import {File} from "@actions/workflow-parser/workflows/file";
import {FileProvider} from "@actions/workflow-parser/workflows/file-provider"; import {FileProvider} from "@actions/workflow-parser/workflows/file-provider";
import {fileIdentifier} from "@actions/workflow-parser/workflows/file-reference"; import {fileIdentifier} from "@actions/workflow-parser/workflows/file-reference";
import {Octokit} from "@octokit/rest"; import {Octokit} from "@octokit/rest";
import path from "path";
import {TTLCache} from "./utils/cache"; import {TTLCache} from "./utils/cache";
import vscodeURI from "vscode-uri/lib/umd";
export function getFileProvider( export function getFileProvider(
client: Octokit | undefined, client: Octokit | undefined,
@@ -31,10 +31,7 @@ export function getFileProvider(
throw new Error("Local file references are not supported with this configuration"); throw new Error("Local file references are not supported with this configuration");
} }
const workspaceURI = vscodeURI.URI.parse(workspace); const file = await readFile(path.join(workspace, ref.path));
const refURI = vscodeURI.Utils.joinPath(workspaceURI, ref.path);
const file = await readFile(refURI.toString());
if (!file) { if (!file) {
throw new Error(`File not found: ${ref.path}`); throw new Error(`File not found: ${ref.path}`);
} }
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@actions/languageservice", "name": "@actions/languageservice",
"version": "0.3.4", "version": "0.3.3",
"description": "Language service for GitHub Actions", "description": "Language service for GitHub Actions",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
@@ -44,8 +44,8 @@
"watch": "tsc --build tsconfig.build.json --watch" "watch": "tsc --build tsconfig.build.json --watch"
}, },
"dependencies": { "dependencies": {
"@actions/expressions": "^0.3.4", "@actions/expressions": "^0.3.3",
"@actions/workflow-parser": "^0.3.4", "@actions/workflow-parser": "^0.3.3",
"vscode-languageserver-textdocument": "^1.0.7", "vscode-languageserver-textdocument": "^1.0.7",
"vscode-languageserver-types": "^3.17.2", "vscode-languageserver-types": "^3.17.2",
"vscode-uri": "^3.0.7", "vscode-uri": "^3.0.7",
+16
View File
@@ -0,0 +1,16 @@
## This script syncs all five repositories to the current state of main.
## It will stash changes on the current branch, switch to main, pull and remain on main.
echo "Syncing all repositories to main"
# for each folder in the above directory
cd ..
for d in */ ; do
cd $d
echo "Syncing $d"
echo "current branch: $(git rev-parse --abbrev-ref HEAD)"
git stash
git checkout main
git pull
cd ..
done
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"$schema": "node_modules/lerna/schemas/lerna-schema.json", "$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true, "useWorkspaces": true,
"version": "0.3.4" "version": "0.3.3"
} }
+9 -9
View File
@@ -135,7 +135,7 @@
}, },
"expressions": { "expressions": {
"name": "@actions/expressions", "name": "@actions/expressions",
"version": "0.3.4", "version": "0.3.3",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/jest": "^29.0.3", "@types/jest": "^29.0.3",
@@ -395,11 +395,11 @@
}, },
"languageserver": { "languageserver": {
"name": "@actions/languageserver", "name": "@actions/languageserver",
"version": "0.3.4", "version": "0.3.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/languageservice": "^0.3.4", "@actions/languageservice": "^0.3.3",
"@actions/workflow-parser": "^0.3.4", "@actions/workflow-parser": "^0.3.3",
"@octokit/rest": "^19.0.7", "@octokit/rest": "^19.0.7",
"@octokit/types": "^9.0.0", "@octokit/types": "^9.0.0",
"vscode-languageserver": "^8.0.2", "vscode-languageserver": "^8.0.2",
@@ -678,11 +678,11 @@
}, },
"languageservice": { "languageservice": {
"name": "@actions/languageservice", "name": "@actions/languageservice",
"version": "0.3.4", "version": "0.3.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/expressions": "^0.3.4", "@actions/expressions": "^0.3.3",
"@actions/workflow-parser": "^0.3.4", "@actions/workflow-parser": "^0.3.3",
"vscode-languageserver-textdocument": "^1.0.7", "vscode-languageserver-textdocument": "^1.0.7",
"vscode-languageserver-types": "^3.17.2", "vscode-languageserver-types": "^3.17.2",
"vscode-uri": "^3.0.7", "vscode-uri": "^3.0.7",
@@ -11720,10 +11720,10 @@
}, },
"workflow-parser": { "workflow-parser": {
"name": "@actions/workflow-parser", "name": "@actions/workflow-parser",
"version": "0.3.4", "version": "0.3.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/expressions": "^0.3.4", "@actions/expressions": "^0.3.3",
"cronstrue": "^2.21.0", "cronstrue": "^2.21.0",
"yaml": "^2.0.0-8" "yaml": "^2.0.0-8"
}, },
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@actions/workflow-parser", "name": "@actions/workflow-parser",
"version": "0.3.4", "version": "0.3.3",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"source": "./src/index.ts", "source": "./src/index.ts",
@@ -43,7 +43,7 @@
"watch": "tsc --build tsconfig.build.json --watch" "watch": "tsc --build tsconfig.build.json --watch"
}, },
"dependencies": { "dependencies": {
"@actions/expressions": "^0.3.4", "@actions/expressions": "^0.3.3",
"cronstrue": "^2.21.0", "cronstrue": "^2.21.0",
"yaml": "^2.0.0-8" "yaml": "^2.0.0-8"
}, },
+1 -2
View File
@@ -577,8 +577,7 @@
"mapping": { "mapping": {
"properties": { "properties": {
"types": "merge-group-activity", "types": "merge-group-activity",
"branches": "event-branches", "branches": "event-branches"
"branches-ignore": "event-branches-ignore"
} }
} }
}, },
+2 -7
View File
@@ -73,10 +73,8 @@ on:
- deleted - deleted
merge_group: merge_group:
branches: branches:
- master - master
- main - main
branches-ignore:
- develop
types: types:
- checks_requested - checks_requested
milestone: milestone:
@@ -323,9 +321,6 @@ jobs:
"master", "master",
"main" "main"
], ],
"branches-ignore": [
"develop"
],
"types": [ "types": [
"checks_requested" "checks_requested"
] ]