Skip to content

Commit

Permalink
🚀 Deploy new version [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pabio-escobar committed Jan 8, 2024
1 parent 81e6b41 commit a4ca8ba
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 18 deletions.
35 changes: 27 additions & 8 deletions dist/helpers/workflows.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/helpers/workflows.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 27 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,9 +1050,9 @@ exports.tempFixes = tempFixes;

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.uptimeCiWorkflow = exports.updatesCiWorkflow = exports.updateTemplateCiWorkflow = exports.summaryCiWorkflow = exports.siteCiWorkflow = exports.setupCiWorkflow = exports.responseTimeCiWorkflow = exports.graphsCiWorkflow = exports.getUptimeMonitorVersion = void 0;
const github_1 = __nccwpck_require__(38066);
const config_1 = __nccwpck_require__(99153);
const constants_1 = __nccwpck_require__(71563);
const github_1 = __nccwpck_require__(38066);
let release = undefined;
const getUptimeMonitorVersion = async () => {
if (release)
Expand All @@ -1067,14 +1067,22 @@ const getUptimeMonitorVersion = async () => {
return release;
};
exports.getUptimeMonitorVersion = getUptimeMonitorVersion;
const introComment = async () => `# This file was generated by upptime/uptime-monitor@${await exports.getUptimeMonitorVersion()}
#
const introComment = async () => `#
# ===============================
# Do not edit this file directly!
# ===============================
#
# Your changes will be overwritten when the template updates (daily)
# Instead, change your .upptimerc.yml configuration: https://upptime.js.org/docs`;
# Your changes will be overwritten when the Upptime template updates (by default, weekly)
# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly.
#
# 🔼 Upptime @${await exports.getUptimeMonitorVersion()}
# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary

# * Source: https://github.com/upptime/upptime
# * Docs and more: https://upptime.js.org
# * More by Anand Chowdhary: https://anandchowdhary.com
#
`;
const graphsCiWorkflow = async () => {
const config = await config_1.getConfig();
const workflowSchedule = config.workflowSchedule || {};
Expand Down Expand Up @@ -1106,6 +1114,10 @@ jobs:
`;
};
exports.graphsCiWorkflow = graphsCiWorkflow;
const getHasIpV6Site = async () => {
const config = await config_1.getConfig();
return !!config.sites.find((site) => site.ipv6);
};
const responseTimeCiWorkflow = async () => {
const config = await config_1.getConfig();
const workflowSchedule = config.workflowSchedule || {};
Expand All @@ -1127,7 +1139,11 @@ jobs:
uses: actions/checkout@v3
with:
ref: \${{ github.head_ref }}
token: \${{ secrets.GH_PAT || github.token }}
token: \${{ secrets.GH_PAT || github.token }}${(await getHasIpV6Site())
? `
- name: Setup WARP
uses: fscarmen/warp-on-actions@v2`
: ""}
- name: Update response time
uses: upptime/uptime-monitor@${await exports.getUptimeMonitorVersion()}
with:
Expand All @@ -1140,7 +1156,6 @@ jobs:
exports.responseTimeCiWorkflow = responseTimeCiWorkflow;
const setupCiWorkflow = async () => {
const config = await config_1.getConfig();
const workflowSchedule = config.workflowSchedule || {};
const commitMessages = config.commitMessages || {};
const statusWebsite = config["status-website"] || {};
return `${await introComment()}
Expand Down Expand Up @@ -1168,7 +1183,11 @@ jobs:
with:
command: "update-template"
env:
GH_PAT: \${{ secrets.GH_PAT || github.token }}
GH_PAT: \${{ secrets.GH_PAT || github.token }}${(await getHasIpV6Site())
? `
- name: Setup WARP
uses: fscarmen/warp-on-actions@v2`
: ""}
- name: Update response time
uses: upptime/uptime-monitor@${await exports.getUptimeMonitorVersion()}
with:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit a4ca8ba

Please sign in to comment.