Skip to content

Commit

Permalink
chore: Fix feature branch cleanup workflow (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens authored Oct 30, 2024
1 parent c075327 commit 76411eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/feature-branch-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ jobs:
BRANCH_NAME=$(echo $RAW_BRANCH_NAME | sed 's/[^/]*\///')
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Check out
- name: Check out branch to access .nvmrc
uses: actions/checkout@v4
with:
ref: gh-pages

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Check out gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Delete folder
run: |
git config --global user.name GitHub Action
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/feature-branch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ jobs:
run: |
touch ./storybook/dist/${{ github.sha }}.txt
# Our workflows use .nvmrc instead of a fixed version, so we need to copy this file over
# to the dist files for use in the feature branch cleanup workflow
- name: Copy over .nvmrc to dist
run: cp .nvmrc ./storybook/dist/

- name: Pushing to pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down

0 comments on commit 76411eb

Please sign in to comment.