Skip to content

Commit

Permalink
Merge pull request #13 from Jurfest/feature/utils
Browse files Browse the repository at this point in the history
ci: simplify pipeline
  • Loading branch information
Jurfest authored Jun 20, 2024
2 parents 6715996 + 7c3607f commit 81fef16
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/storybook-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ jobs:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

# Extract the Chromatic URL and update the README file
- name: Update README with Chromatic URL
run: |
# Extract Chromatic URL from the output
url=$(grep -oP 'https://.*\.chromatic\.com/' chromatic-output.txt | head -n 1)
# Update the README.md file with the new URL
sed -i 's|\(https://\).*\(.chromatic.com/\)|\1'"$url"'\2|' README.md
# Commit and push the updated README file
- name: Commit and Push README
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "ci: automatic storybook url update in readme"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Update README with Chromatic URL
# run: |
# # Extract Chromatic URL from the output
# url=$(grep -oP 'https://.*\.chromatic\.com/' chromatic-output.txt | head -n 1)

# # Update the README.md file with the new URL
# sed -i 's|\(https://\).*\(.chromatic.com/\)|\1'"$url"'\2|' README.md

# # Commit and push the updated README file
# - name: Commit and Push README
# run: |
# git config --global user.name "github-actions[bot]"
# git config --global user.email "github-actions[bot]@users.noreply.github.com"
# git add README.md
# git commit -m "ci: automatic storybook url update in readme"
# git push
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 81fef16

Please sign in to comment.