Skip to content

Commit

Permalink
Merge pull request #23 from pho3nixf1re/another-try
Browse files Browse the repository at this point in the history
docs(changeset): more tries at workflow stacking
  • Loading branch information
pho3nixf1re authored Dec 18, 2023
2 parents 81c86c6 + 707f7c6 commit a5be521
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-pumas-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"pho3nixf1re.net": patch
---

more tries at workflow stacking
11 changes: 11 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- 'v**'
pull_request:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: true
type: string

concurrency:
group: 'pages'
Expand All @@ -18,7 +23,13 @@ jobs:
contents: read
steps:
- name: Checkout
if: github.event_name != 'workflow_dispatch'
uses: actions/checkout@v4
- name: Checkout tag
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
token: ${{ env.GITHUB_TOKEN }}
- name: Configure git author
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -50,3 +50,4 @@ jobs:
if: ${{ steps.release.outputs.release != '' }}
run: |
gh release create "v${{ steps.release.outputs.release }}" --generate-notes
gh workflow run build-and-deploy.yml --ref "${{ steps.release.outputs.release }}"

0 comments on commit a5be521

Please sign in to comment.