Skip to content

Commit e9f758f

Browse files
authored
Update update-ca-file.yml
1 parent 3f1a2b2 commit e9f758f

File tree

1 file changed

+7
-40
lines changed

1 file changed

+7
-40
lines changed

.github/workflows/update-ca-file.yml

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -31,43 +31,10 @@ jobs:
3131
echo "CHANGED=false" >> $GITHUB_ENV
3232
fi
3333
34-
- name: Commit changes
35-
if: env.CHANGED == 'true'
36-
run: |
37-
git config --local user.email "[email protected]"
38-
git config --local user.name "Simon Hamp"
39-
git add cacert.pem
40-
git commit -m "Update CA file"
41-
git push
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
45-
release:
46-
needs: fetch-ca-file
47-
if: needs.fetch-ca-file.outputs.changed == 'true'
48-
runs-on: ubuntu-latest
49-
steps:
50-
- name: Get the latest release
51-
id: latestrelease
52-
run: |
53-
LATEST_VERSION=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" \
54-
| jq -r .tag_name)
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
58-
- name: Bump the patch version
59-
id: bump
60-
run: |
61-
NEW_VERSION=$(echo "${{ steps.latestrelease.outputs.version }}" | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')
62-
echo "VERSION=${NEW_VERSION}" >> $GITHUB_ENV
63-
64-
- name: Create a new release
65-
id: create_release
66-
uses: actions/create-release@v1
67-
with:
68-
tag_name: v${{ env.VERSION }}
69-
release_name: v${{ env.VERSION }}
70-
draft: true
71-
prerelease: false
72-
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Create Pull Request
35+
uses: peter-evans/create-pull-request@v7
36+
with:
37+
branch: update-ca-file
38+
title: "Update CA file"
39+
commit-message: "Update CA file"
40+
base: main

0 commit comments

Comments
 (0)