Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
sed -i 's/"version": "[^"]*"/"version": "${{ env.VERSION }}"/' package.json
env:
VERSION: ${{ github.GITHUB_REF#v }}
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')

# clone warduino
- uses: actions/checkout@v4
Expand All @@ -45,7 +45,7 @@ jobs:
sed -i "s|\"latch\": \"file:./latch-[^\"]*\"|\"latch\": \"file:./latch-$VERSION.tgz\"|" package.json
working-directory: 'warduino'
env:
VERSION: ${{ github.GITHUB_REF#v }}
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')

# commit
- name: Push changes
Expand All @@ -58,14 +58,14 @@ jobs:
git push --set-upstream origin bump/latch-$VERSION
working-directory: 'warduino'
env:
VERSION: ${{ github.GITHUB_REF#v }}
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')

# create pull request
- name: Create Pull Request
run: |
gh pr create --title "⬆️ Bump latch to $VERSION" --body "Bumping latch to \`$VERSION\`" --base main --head bump/latch-$VERSION --label dependencies
working-directory: 'warduino'
env:
VERSION: ${{ github.GITHUB_REF#v }}
VERSION: $(echo "${{ github.ref }}" | sed -e 's:v\(.*\):\1:')
GH_TOKEN: ${{ secrets.WARDUINO_LATCH }}