github: update workflows to use peter-evans/create-pull-request (#1072)
Turns out the workflow we use currently is far too unreliable. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
cbb96397d1
commit
6f42586a8d
2 changed files with 9 additions and 24 deletions
16
.github/workflows/draft_new_release.yml
vendored
16
.github/workflows/draft_new_release.yml
vendored
|
@ -30,18 +30,10 @@ jobs:
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
git config user.email noreply@github.com
|
git config user.email noreply@github.com
|
||||||
|
|
||||||
- name: Commit changelog
|
- name: Create Pull Request
|
||||||
run: |
|
uses: peter-evans/create-pull-request@v3
|
||||||
git add CHANGELOG.md
|
|
||||||
git commit --message "Prepare release ${{ env.RELEASE_VERSION }}"
|
|
||||||
|
|
||||||
- name: Push new branch
|
|
||||||
run: git push origin release-${{ env.RELEASE_VERSION }}
|
|
||||||
|
|
||||||
- name: Create pull request
|
|
||||||
uses: thomaseizinger/create-pull-request@1.0.0
|
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
commit-message: "Prepare release ${{ env.RELEASE_VERSION }}"
|
||||||
head: release-${{ env.RELEASE_VERSION }}
|
branch: release-${{ env.RELEASE_VERSION }}
|
||||||
base: release
|
base: release
|
||||||
title: Release ${{ env.RELEASE_VERSION }}
|
title: Release ${{ env.RELEASE_VERSION }}
|
||||||
|
|
17
.github/workflows/update_publicsuffix_data.yml
vendored
17
.github/workflows/update_publicsuffix_data.yml
vendored
|
@ -21,19 +21,12 @@ jobs:
|
||||||
- name: Compare list changes
|
- name: Compare list changes
|
||||||
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "::set-env name=UPDATED::true"; fi
|
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "::set-env name=UPDATED::true"; fi
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Create Pull Request
|
||||||
if: env.UPDATED == 'true'
|
uses: peter-evans/create-pull-request@v3
|
||||||
run: |
|
|
||||||
git checkout -b bot/update-psl
|
|
||||||
git add app/src/main/assets/publicsuffixes
|
|
||||||
git commit --message "Update Public Suffix List data"
|
|
||||||
|
|
||||||
- name: Create update PR
|
|
||||||
uses: thomaseizinger/create-pull-request@1.0.0
|
|
||||||
if: env.UPDATED == 'true'
|
if: env.UPDATED == 'true'
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
commit-message: Update Public Suffix List data
|
||||||
head: bot/update-psl
|
branch: bot/update-psl
|
||||||
base: develop
|
base: develop
|
||||||
title: 'Update Public Suffix List data'
|
title: 'Update Public Suffix List data'
|
||||||
body: 'Updates Public Suffix List from https://publicsuffix.org/list/'
|
assignees: msfjarvis
|
||||||
|
|
Loading…
Reference in a new issue