0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-22 14:08:23 -05:00

Compare commits

..

No commits in common. "33a861ffd4a9dc10857396115cc9aee63b18af74" and "bc8608cd4e2a0beaa77edb6b597a6fd9f306e939" have entirely different histories.

View File

@ -7,8 +7,6 @@ on:
permissions: permissions:
contents: write contents: write
pull-requests: write
repository-projects: write
concurrency: production concurrency: production
@ -29,34 +27,15 @@ jobs:
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: rolling release_branches: rolling
- name: create branch - name: get-app-version
uses: peterjgrainger/action-create-branch@v2.2.0 id: package-version
env: run: |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LF_VERSION=$(cat package.json | jq -r '.version')
with: echo "current-version=$LF_VERSION" >> "$GITHUB_OUTPUT"
branch: update-from-${{ github.sha }}
- name: update cargo.toml - name: update cargo.toml
run: | run: |
appversion=$(echo "${{ steps.version-bump.outputs.new_tag }}" | sed 's/[v]//') appversion=$(echo "${{ steps.version-bump.outputs.new_tag }}" | sed 's/[v]//')
sed -i -e "s/^version = .*/version = \"$appversion\"/" Cargo.toml 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 - name: Create Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with: