Skip to content

Commit

Permalink
♻️Setup release workflow to do dry runs (#85)
Browse files Browse the repository at this point in the history
* Start work for issue #50

* ci: setup release workflow to perform dry runs

* chore: add playground script file to project

* ci: cleanup unused powershell in workflow step
  • Loading branch information
CalvinWilkinson authored May 6, 2024
1 parent 0a84206 commit 98b83a5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/branch-status-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ jobs:
$targetBranch = "${{ github.base_ref }}";
$srcBranch = "${{ github.head_ref }}";
$featureBranchRegex = "";
$dependatobt
# Validate the source branch
if ($srcBranch -notmatch "${{ vars.FEATURE_BRANCH_REGEX }}" -and $srcBranch -notmatch "${{ vars.RENOVATE_BRANCH_REGEX }}") {
$errorMsg = "::error::The source branch name '$srcBranch' is invalid.";
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ defaults:

on:
workflow_dispatch:
inputs:
dry-run:
description: Dry Run - Check to run the workflow without creating a release.
required: false
default: false
type: boolean


permissions:
Expand Down Expand Up @@ -71,5 +77,6 @@ jobs:
path: '${{ github.workspace }}/build'

- name: Deploy to GitHub Pages
if: ${{ inputs.dry-run == 'false'}}
id: deployment
uses: actions/deploy-pages@v4
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"deno.enablePaths": ["clean.ts"],
"deno.enablePaths": [
"clean.ts",
"playground.ts"
],
"cSpell.words": [
"algoliasearch",
"bufferutil",
Expand Down
1 change: 1 addition & 0 deletions playground.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const _token = Deno.env.get("CICD_TOKEN");

0 comments on commit 98b83a5

Please sign in to comment.