mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-24 04:31:37 +03:00
Fix GitHub spelling in hurl-bot talking.
This commit is contained in:
parent
6bf183845a
commit
8f776b20fc
4
.github/workflows/accept-pull-request.yml
vendored
4
.github/workflows/accept-pull-request.yml
vendored
@ -132,11 +132,11 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check github release
|
||||
- name: Check GitHub release
|
||||
id: check-github-release
|
||||
run: |
|
||||
if [ $(echo ${{ env.HEAD_REF }} | grep -Ec '^release/') -eq 0 ] ; then
|
||||
echo " - ✅ Pull request is not about a pending github release."
|
||||
echo " - ✅ Pull request is not about a pending GitHub release."
|
||||
else
|
||||
echo "is_a_github_release_pr=true" | tee -a "${GITHUB_OUTPUT}"
|
||||
tag_version="$(echo ${{ env.HEAD_REF }} | cut --delimiter '/' --field 2)"
|
||||
|
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -13,7 +13,7 @@ on:
|
||||
type: boolean
|
||||
default: true
|
||||
deliver-github-release:
|
||||
description: 'Deliver github release'
|
||||
description: 'Deliver GitHub release'
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
@ -104,7 +104,7 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check github release existence
|
||||
- name: Check GitHub release existence
|
||||
id: check-github-release-existence
|
||||
run: |
|
||||
gh release list || true
|
||||
@ -118,14 +118,14 @@ jobs:
|
||||
echo "github_release_exists=true" | tee -a $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Delete github release
|
||||
- name: Delete GitHub release
|
||||
if: steps.check-github-release-existence.outputs.github_release_exists == 'true'
|
||||
run: |
|
||||
gh release delete ${{ needs.set-context.outputs.release_version }} --yes && gh_exit_code=0 || gh_exit_code=$?
|
||||
if [ ${gh_exit_code} -eq 0 ] ; then
|
||||
echo " - ✅ ${{ needs.set-context.outputs.release_version }} github release deleted."
|
||||
echo " - ✅ ${{ needs.set-context.outputs.release_version }} GitHub release deleted."
|
||||
else
|
||||
echo " - ❌ A problem occurs when attempting to delete ${{ needs.set-context.outputs.release_version }} github release."
|
||||
echo " - ❌ A problem occurs when attempting to delete ${{ needs.set-context.outputs.release_version }} GitHub release."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -365,7 +365,7 @@ jobs:
|
||||
if [ ${gh_exit_code} -eq 0 ] ; then
|
||||
echo " - ✅ Github release ${{ needs.set-context.outputs.release_version }} created."
|
||||
else
|
||||
echo " - ❌ A problem occurs when attempting to create github release ${{ needs.set-context.outputs.release_version }}."
|
||||
echo " - ❌ A problem occurs when attempting to create GitHub release ${{ needs.set-context.outputs.release_version }}."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -373,11 +373,11 @@ jobs:
|
||||
run: |
|
||||
GITHUB_TOKEN=${{ secrets.HURL_BOT_TOKEN }}
|
||||
{
|
||||
echo "⚠ This is a github releasing PR."
|
||||
echo "⚠ This is a GitHub releasing PR."
|
||||
echo "- Please use \`/accept --release\` if you want to automatically update master branch to next SNAPSHOT version"
|
||||
} > file-body.txt
|
||||
gh pr create \
|
||||
--title "Merge Github ${{ needs.set-context.outputs.release_branch }} into ${{ github.ref_name }}" \
|
||||
--title "Merge GitHub ${{ needs.set-context.outputs.release_branch }} into ${{ github.ref_name }}" \
|
||||
--body-file file-body.txt \
|
||||
--base master \
|
||||
--label bot && gh_exit_code=0 || gh_exit_code=$?
|
||||
|
Loading…
Reference in New Issue
Block a user