Skip to content

Commit

Permalink
use rest APIs to get job status
Browse files Browse the repository at this point in the history
  • Loading branch information
lukka committed Jan 29, 2022
1 parent 45ca959 commit c479e86
Show file tree
Hide file tree
Showing 5 changed files with 12,276 additions and 7,452 deletions.
6 changes: 3 additions & 3 deletions action.yml
Expand Up @@ -63,10 +63,10 @@ inputs:
default: "\\s*\"(.+CMakeOutput\\.log)\"\\.\\s*;\\s*\"(.+CMakeError\\.log)\"\\.\\s*;\\s*(.+out\\.log)\\s*;\\s+(.+err\\.log)\\s*;\\s*(.+vcpkg.+\\.log)\\s*"
required: false
description: "Specifies a semicolon separated list of regular expressions that are used to identify log file paths in the workflow output. A regular expression must have a single capturing group, that is a single pair of parenthesis such as 'See also (.+.log)'. When a match occurs, the content of the file is written into the workflow output for disclosing its content to the user. The default regular expressions are for CMake's and vcpkg's log files."
jobStatus:
default: ${{ job.status }}
gitHubToken:
default: ${{ github.token }}
required: false
description: "Do not set nor use. It is used to get the status of the job and decide whether to save cache on the post action run at the end of the job."
description: "Specifies the token use to authenticate while fetching the Job's status via HTTP REST APIs."

runs:
using: 'node12'
Expand Down
3 changes: 1 addition & 2 deletions dist/index.js
Expand Up @@ -72,7 +72,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.VcpkgAction = exports.VCPKG_ADDITIONAL_CACHED_PATHS_STATE = exports.VCPKG_ROOT_STATE = exports.VCPKG_ADDED_CACHEKEY_STATE = exports.VCPKG_DO_NOT_CACHE_STATE = exports.VCPKG_KEY_CACHE_HIT_STATE = exports.VCPKG_CACHE_COMPUTEDKEY_STATE = exports.logCollectionRegExpsInput = exports.appendedCacheKeyInput = exports.vcpkgUrlInput = exports.doNotUpdateVcpkgInput = exports.vcpkgCommitIdInput = exports.vcpkgDirectoryInput = exports.runVcpkgFormatStringInput = exports.runVcpkgInstallInput = exports.vcpkgJsonIgnoresInput = exports.vcpkgJsonGlobInput = exports.doNotCacheOnWorkflowFailureInput = exports.jobStatusInput = exports.binaryCachePathInput = exports.additionalCachedPathsInput = exports.doNotCacheInput = void 0;
exports.VcpkgAction = exports.VCPKG_ADDITIONAL_CACHED_PATHS_STATE = exports.VCPKG_ROOT_STATE = exports.VCPKG_ADDED_CACHEKEY_STATE = exports.VCPKG_DO_NOT_CACHE_STATE = exports.VCPKG_KEY_CACHE_HIT_STATE = exports.VCPKG_CACHE_COMPUTEDKEY_STATE = exports.logCollectionRegExpsInput = exports.appendedCacheKeyInput = exports.vcpkgUrlInput = exports.doNotUpdateVcpkgInput = exports.vcpkgCommitIdInput = exports.vcpkgDirectoryInput = exports.runVcpkgFormatStringInput = exports.runVcpkgInstallInput = exports.vcpkgJsonIgnoresInput = exports.vcpkgJsonGlobInput = exports.doNotCacheOnWorkflowFailureInput = exports.binaryCachePathInput = exports.additionalCachedPathsInput = exports.doNotCacheInput = void 0;
const path = __nccwpck_require__(5622);
const cache = __nccwpck_require__(7799);
const runvcpkglib = __nccwpck_require__(4393);
Expand All @@ -81,7 +81,6 @@ const vcpkgutil = __nccwpck_require__(4534);
exports.doNotCacheInput = 'DONOTCACHE';
exports.additionalCachedPathsInput = 'ADDITIONALCACHEDPATHS';
exports.binaryCachePathInput = 'BINARYCACHEPATH';
exports.jobStatusInput = 'JOBSTATUS';
exports.doNotCacheOnWorkflowFailureInput = 'DONOTCACHEONWORKFLOWFAILURE';
exports.vcpkgJsonGlobInput = 'VCPKGJSONGLOB';
exports.vcpkgJsonIgnoresInput = "VCPKGJSONIGNORES";
Expand Down

0 comments on commit c479e86

Please sign in to comment.