mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-22 05:58:21 -05:00
Compare commits
30 Commits
be6ebe5c90
...
1e7997d9e1
Author | SHA1 | Date | |
---|---|---|---|
|
1e7997d9e1 | ||
|
33a861ffd4 | ||
|
31837eb7ec | ||
|
4c056a327c | ||
|
a5284e8b62 | ||
|
7748ed2b08 | ||
|
a7b8be2bdf | ||
|
c62a0c07b4 | ||
|
39d9dccb7a | ||
|
542f27f5ca | ||
|
0ec25642db | ||
|
d9841bfdcd | ||
|
c95bb7d000 | ||
|
6e60be365b | ||
|
f0c365a6bb | ||
|
5c98982612 | ||
|
976af538e1 | ||
|
75468a296a | ||
|
2e653d1905 | ||
|
e0b683b4ca | ||
|
ac6f95e7e9 | ||
|
559c7fcb76 | ||
|
599fa431b3 | ||
|
d40e5ed1a6 | ||
|
e0b0d34750 | ||
|
8f8e1b7597 | ||
|
3308b0256e | ||
|
9df36aeead | ||
|
c9c54f60fc | ||
|
563155077b |
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
@ -7,13 +7,15 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
repository-projects: write
|
||||
|
||||
concurrency: production
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: bump tag version and release
|
||||
if: github.event.pull_request.merged == true
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@ -27,15 +29,34 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
release_branches: rolling
|
||||
- name: get-app-version
|
||||
id: package-version
|
||||
run: |
|
||||
LF_VERSION=$(cat package.json | jq -r '.version')
|
||||
echo "current-version=$LF_VERSION" >> "$GITHUB_OUTPUT"
|
||||
- name: create branch
|
||||
uses: peterjgrainger/action-create-branch@v2.2.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
branch: update-from-${{ github.sha }}
|
||||
- name: update cargo.toml
|
||||
run: |
|
||||
appversion=$(echo "${{ steps.version-bump.outputs.new_tag }}" | sed 's/[v]//')
|
||||
sed -i -e "s/^version = .*/version = \"$appversion\"/" Cargo.toml
|
||||
- name: auto commit
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "[skip ci] Automated Change"
|
||||
branch: update-from-${{ github.sha }}
|
||||
# create PR using GitHub CLI
|
||||
- name: create PR with update info
|
||||
id: create-pr
|
||||
run: gh pr create --base rolling --head update-from-${{ github.sha }} --title 'Merge new update into rolling' --body 'Created by Github action'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# merge PR using GitHub CLI
|
||||
- name: merge PR with update info
|
||||
id: merge-pr
|
||||
run: gh pr merge --admin --merge --subject 'Merge update info' --delete-branch
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.ADMIN_RIGHTS_TOKEN }}
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user