mirror of
https://github.com/coder/code-server.git
synced 2026-05-09 13:57:26 +02:00
Automatically generate helm/changelog PR
This commit is contained in:
39
.github/workflows/publish.yaml
vendored
39
.github/workflows/publish.yaml
vendored
@@ -70,6 +70,11 @@ jobs:
|
||||
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||
ref: "master"
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.name cdrci
|
||||
git config --global user.email opensource@coder.com
|
||||
|
||||
- name: Fetch and reset master
|
||||
run: |
|
||||
git remote add upstream https://github.com/coder/code-server-aur.git
|
||||
@@ -77,11 +82,6 @@ jobs:
|
||||
git reset --hard upstream/master
|
||||
git push --force
|
||||
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.name cdrci
|
||||
git config --global user.email opensource@coder.com
|
||||
|
||||
- name: Validate package
|
||||
uses: heyhusen/archlinux-package-action@c9f94059ccbebe8710d31d582f33ef4e84fe575c # v3.0.0
|
||||
with:
|
||||
@@ -136,3 +136,32 @@ jobs:
|
||||
out-file-path: "release-packages"
|
||||
|
||||
- run: npm run publish:docker
|
||||
|
||||
repo:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||
TAG: ${{ inputs.version || github.ref_name }}
|
||||
needs: docker
|
||||
|
||||
steps:
|
||||
- name: Set version to tag without leading v
|
||||
run: |
|
||||
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
- run: ./ci/build/update-repo.sh
|
||||
|
||||
- name: Open PR
|
||||
run: |
|
||||
git config --global user.name cdrci
|
||||
git config --global user.email opensource@coder.com
|
||||
git checkout -b "helm/$VERSION"
|
||||
git add .
|
||||
git commit -m "Update to $VERSION"
|
||||
git push -u origin "$(git branch --show)"
|
||||
gh pr create \
|
||||
--repo coder/code-server \
|
||||
--body-file .cache/checklist \
|
||||
--title "Update to $VERSION"
|
||||
|
||||
Reference in New Issue
Block a user