Skip to content

Commit 519f681

Browse files
Highlight Bash snippets
1 parent 5a83a8f commit 519f681

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
token: ${{ steps.app-token.outputs.token }}
2626
- name: Configure Git user
27+
# language=bash
2728
run: |
2829
git config user.name 'theoplayer-bot[bot]'
2930
git config user.email '873105+theoplayer-bot[bot]@users.noreply.github.com'
@@ -38,16 +39,19 @@ jobs:
3839
# https://github.com/gradle/actions/blob/v6.0.0/README.md#licensing-notice
3940
cache-disabled: true
4041
- name: Update connector version
42+
# language=bash
4143
run: ./gradlew :updateVersion -PconnectorVersion=$VERSION
4244
env:
4345
VERSION: ${{ inputs.version }}
4446
- name: Push to release branch
4547
shell: bash
48+
# language=bash
4649
run: |
4750
git commit -a -m ${{ inputs.version }}
4851
git push origin "HEAD:release/${{ inputs.version }}"
4952
- name: Create pull request
5053
shell: bash
54+
# language=bash
5155
run: |
5256
gh pr create \
5357
--base master \

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
with:
3232
token: ${{ steps.app-token.outputs.token }}
3333
- name: Configure Git user
34+
# language=bash
3435
run: |
3536
git config user.name 'theoplayer-bot[bot]'
3637
git config user.email '873105+theoplayer-bot[bot]@users.noreply.github.com'
@@ -47,6 +48,7 @@ jobs:
4748
- name: Get version
4849
id: get-version
4950
shell: bash
51+
# language=bash
5052
run: |
5153
version=$(./gradlew :properties --property version --no-daemon --console=plain --quiet | awk '/^version:/ {print $2}')
5254
echo "version=$version" >> "$GITHUB_OUTPUT"
@@ -59,13 +61,15 @@ jobs:
5961
YOSPACE_USERNAME: ${{ secrets.YOSPACE_USERNAME }}
6062
YOSPACE_PASSWORD: ${{ secrets.YOSPACE_PASSWORD }}
6163
- name: Push tag
64+
# language=bash
6265
run: |
6366
git tag "$VERSION" -m "New release $VERSION"
6467
git push origin tag "$VERSION"
6568
env:
6669
GH_TOKEN: ${{ steps.app-token.outputs.token }}
6770
VERSION: ${{ steps.get-version.version }}
6871
- name: Create GitHub release
72+
# language=bash
6973
run: |
7074
gh release create "$VERSION" --verify-tag --latest \
7175
--title "$VERSION"

0 commit comments

Comments
 (0)