Skip to content

Commit

Permalink
ci(workflows): update GitHub Actions workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysteenman committed Oct 25, 2024
1 parent 4446550 commit 95b065a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,28 @@ jobs:
- name: Commit changes to Github
run: |
set -x -e
# Configure git
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
# Update version
npm version minor --force --no-git-tag-version
package_version=$(cat package.json|grep 'version":'|sed 's/[",]//g'|awk '{print $2}')
package_version=$(cat package.json | grep 'version":' | sed 's/[",]//g' | awk '{print $2}')
cfn_release_rss_summary=$(python3 src/update-and-parse-feed.py)
# Install dependencies and prepare for publishing
npm install
npm run vscode:prepublish
git commit -am "$cfn_release_rss_summary"
git tag $package_version
gitchangelog|tee "CHANGELOG.md"
git commit -am "Changelog version: $package_version"
# Generate changelog
gitchangelog | tee "CHANGELOG.md"
# Commit and push changes
git commit -am "build: auto-update snippets to version: $package_version"
git push
# Create and push tag
git tag $package_version
git push origin --tags
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"aws",
"cloudformation",
"sam",
"template",
"iac",
"yaml"
],
"badges": [
Expand Down
2 changes: 1 addition & 1 deletion src/current-cfn-spec-hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8969a672b9935d676064522ff98cf77be4054536de06371c5f2457be8d0cbb65
8969a672b9935d676064522ff98cf77be4054536de06371c5f245

0 comments on commit 95b065a

Please sign in to comment.