Skip to content

Commit

Permalink
Move JS actions to .github/actions/javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Jun 28, 2022
1 parent 715f715 commit 83c79d6
Show file tree
Hide file tree
Showing 54 changed files with 84 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const _ = require('underscore');
const ActionUtils = require('../../libs/ActionUtils');
const GitHubUtils = require('../../libs/GithubUtils');
const {promiseDoWhile} = require('../../libs/promiseWhile');
const ActionUtils = require('../../../libs/ActionUtils');
const GitHubUtils = require('../../../libs/GithubUtils');
const {promiseDoWhile} = require('../../../libs/promiseWhile');

function run() {
const tag = ActionUtils.getStringInput('TAG', {required: false});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 1738:
/***/ 1021:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12224,6 +12224,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(1738);
/******/ return __nccwpck_require__(1021);
/******/ })()
;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const fs = require('fs');
const exec = promisify(require('child_process').exec);
const _ = require('underscore');
const core = require('@actions/core');
const versionUpdater = require('../../libs/versionUpdater');
const {updateAndroidVersion, updateiOSVersion, generateAndroidVersionCode} = require('../../libs/nativeVersionUpdater');
const versionUpdater = require('../../../libs/versionUpdater');
const {updateAndroidVersion, updateiOSVersion, generateAndroidVersionCode} = require('../../../libs/nativeVersionUpdater');

/**
* Update the native app versions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 407:
/***/ 39:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {

const {promisify} = __nccwpck_require__(669);
Expand Down Expand Up @@ -3599,6 +3599,6 @@ module.exports = require("util");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(407);
/******/ return __nccwpck_require__(39);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const core = require('@actions/core');
const {execSync} = require('child_process');
const {PLIST_PATH} = require('../../libs/nativeVersionUpdater');
const {PLIST_PATH} = require('../../../libs/nativeVersionUpdater');

const bundleVersion = execSync(`grep -A1 'CFBundleVersion' ${PLIST_PATH} | grep -v 'CFBundleVersion' | sed 's|[</string>,]||g'`).toString().trim();
const shortBundleVersion = execSync(`grep -A1 'CFBundleShortVersionString' ${PLIST_PATH} | grep -v 'CFBundleShortVersionString' | sed 's|[</string>,]||g'`).toString().trim();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 330:
/***/ 855:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {

const core = __nccwpck_require__(186);
Expand Down Expand Up @@ -1247,6 +1247,6 @@ module.exports = require("path");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(330);
/******/ return __nccwpck_require__(855);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const _ = require('underscore');
const core = require('@actions/core');
const GithubUtils = require('../../libs/GithubUtils');
const GithubUtils = require('../../../libs/GithubUtils');

const run = function () {
const issueNumber = Number(core.getInput('ISSUE_NUMBER', {required: true}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 7978:
/***/ 6265:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12145,6 +12145,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(7978);
/******/ return __nccwpck_require__(6265);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const _ = require('underscore');
const core = require('@actions/core');
const moment = require('moment');
const GithubUtils = require('../../libs/GithubUtils');
const GitUtils = require('../../libs/GitUtils');
const GithubUtils = require('../../../libs/GithubUtils');
const GitUtils = require('../../../libs/GitUtils');

const run = function () {
const newVersion = core.getInput('NPM_VERSION');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 2730:
/***/ 3926:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -18035,6 +18035,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(2730);
/******/ return __nccwpck_require__(3926);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const _ = require('underscore');
const core = require('@actions/core');
const github = require('@actions/github');
const ActionUtils = require('../../libs/ActionUtils');
const GitUtils = require('../../libs/GitUtils');
const ActionUtils = require('../../../libs/ActionUtils');
const GitUtils = require('../../../libs/GitUtils');

const octokit = github.getOctokit(core.getInput('GITHUB_TOKEN', {required: true}));
const inputTag = core.getInput('TAG', {required: true});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 6062:
/***/ 5847:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -8407,6 +8407,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(6062);
/******/ return __nccwpck_require__(5847);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const _ = require('underscore');
const core = require('@actions/core');
const ActionUtils = require('../../libs/ActionUtils');
const GithubUtils = require('../../libs/GithubUtils');
const ActionUtils = require('../../../libs/ActionUtils');
const GithubUtils = require('../../../libs/GithubUtils');

const DEFAULT_PAYLOAD = {
owner: GithubUtils.GITHUB_OWNER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 1751:
/***/ 8306:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12216,6 +12216,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(1751);
/******/ return __nccwpck_require__(8306);
/******/ })()
;
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const _ = require('underscore');
const core = require('@actions/core');
const ActionUtils = require('../../libs/ActionUtils');
const GithubUtils = require('../../libs/GithubUtils');
const ActionUtils = require('../../../libs/ActionUtils');
const GithubUtils = require('../../../libs/GithubUtils');

// Parse the stringified JSON array of PR numbers, and cast each from String -> Number
const PRList = _.map(ActionUtils.getJSONInput('PR_LIST', {required: true}), Number);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 547:
/***/ 8201:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12134,6 +12134,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(547);
/******/ return __nccwpck_require__(8201);
/******/ })()
;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 8056:
/***/ 598:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12184,6 +12184,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(8056);
/******/ return __nccwpck_require__(598);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const _ = require('underscore');
const core = require('@actions/core');
const GithubUtils = require('../../libs/GithubUtils');
const {promiseWhile} = require('../../libs/promiseWhile');
const GithubUtils = require('../../../libs/GithubUtils');
const {promiseWhile} = require('../../../libs/promiseWhile');

const MAX_RETRIES = 30;
const THROTTLE_DURATION = process.env.NODE_ENV === 'test' ? 5 : 5000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 608:
/***/ 8441:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12098,6 +12098,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(608);
/******/ return __nccwpck_require__(8441);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const _ = require('underscore');
const core = require('@actions/core');
const GithubUtils = require('../../libs/GithubUtils');
const GithubUtils = require('../../../libs/GithubUtils');

const run = function () {
return GithubUtils.getStagingDeployCash()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 519:
/***/ 2759:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12310,6 +12310,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(519);
/******/ return __nccwpck_require__(2759);
/******/ })()
;
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const _ = require('underscore');
const lodashGet = require('lodash/get');
const core = require('@actions/core');
const {context} = require('@actions/github');
const ActionUtils = require('../../libs/ActionUtils');
const GithubUtils = require('../../libs/GithubUtils');
const ActionUtils = require('../../../libs/ActionUtils');
const GithubUtils = require('../../../libs/GithubUtils');

const prList = ActionUtils.getJSONInput('PR_LIST', {required: true});
const isProd = ActionUtils.getJSONInput('IS_PRODUCTION_DEPLOY', {required: true});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 888:
/***/ 8634:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {

const core = __nccwpck_require__(2186);
Expand Down Expand Up @@ -12109,6 +12109,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(888);
/******/ return __nccwpck_require__(8634);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const core = require('@actions/core');
const GithubUtils = require('../../libs/GithubUtils');
const GithubUtils = require('../../../libs/GithubUtils');

const issueNumber = core.getInput('ISSUE_NUMBER', {required: true});
const comment = core.getInput('COMMENT', {required: true});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 9908:
/***/ 9822:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12327,6 +12327,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(9908);
/******/ return __nccwpck_require__(9822);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const _ = require('underscore');
const core = require('@actions/core');
const ActionUtils = require('../../libs/ActionUtils');
const GithubUtils = require('../../libs/GithubUtils');
const {promiseWhile} = require('../../libs/promiseWhile');
const ActionUtils = require('../../../libs/ActionUtils');
const GithubUtils = require('../../../libs/GithubUtils');
const {promiseWhile} = require('../../../libs/promiseWhile');

/**
* The maximum amount of time (in ms) we'll wait for a new workflow to start after sending the workflow_dispatch event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 7115:
/***/ 5740:
/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => {

const _ = __nccwpck_require__(3571);
Expand Down Expand Up @@ -12141,6 +12141,6 @@ module.exports = require("zlib");;
/******/ // module exports must be returned from runtime so entry inlining is disabled
/******/ // startup
/******/ // Load entry module and return exports
/******/ return __nccwpck_require__(7115);
/******/ return __nccwpck_require__(5740);
/******/ })()
;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const _ = require('underscore');
const core = require('@actions/core');
const github = require('@actions/github');
const GitHubUtils = require('../../libs/GithubUtils');
const GitHubUtils = require('../../../libs/GithubUtils');

const PR_NUMBER = Number.parseInt(core.getInput('PR_NUMBER'), 10) || github.context.payload.pull_request.number;

Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/buildActions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# In order for this script to be safely run from anywhere, we cannot use the raw relative path '../actions'
declare ACTIONS_DIR
ACTIONS_DIR="$(dirname "$(dirname "$0")")/actions"
ACTIONS_DIR="$(dirname "$(dirname "$0")")/actions/javascript"

# List of paths to all JS files that implement our GH Actions
declare -r GITHUB_ACTIONS=(
Expand Down
Loading

0 comments on commit 83c79d6

Please sign in to comment.