Skip to content

Commit 84ee3f5

Browse files
committed
[Docs] Updated README with VibrationComponent usage
1 parent 4bfb774 commit 84ee3f5

15 files changed

+200
-21
lines changed

.github/scripts/functions.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ packageVersion() {
1010
echo $VERSION
1111
}
1212

13+
# @description Add github actions state and output variables to be handled on .yml workflow files
14+
#
15+
# @see [shdoc](https://github.com/reconquest/shdoc)
16+
# @see [Deprecating save-state and set-output commands](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands)
1317
githubActionsOutputs() {
1418
CURRENT_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
1519
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
16-
echo ::set-output name=tag::$CURRENT_TAG
17-
echo ::set-output name=commit_message::$COMMIT_MESSAGE
20+
# Use the format {name}={value} instead of ::set-output
21+
echo "{tag}={$CURRENT_TAG}" >> $GITHUB_OUTPUT
22+
echo "{commit_message}={$COMMIT_MESSAGE}" >> $GITHUB_OUTPUT
1823
}
1924

2025
copyPackagesContent() {

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ on:
66
repository_dispatch:
77
types: [on-demand-test]
88
env:
9+
# PS: You can define github action variables in a repository, without modify this file
10+
# from: https://github.com/[profile]/[repository]/settings/variables/actions
911
PKG_BRANCH: upm
1012
PKG_NAME: com.benoitfreslon.vibration
1113
PKG_ROOT: ./
14+
EXCLUDE_REMOVE_FILES: '!(Packages|.github|.git|README.md|README.md.meta|LICENSE|LICENSE.meta|Images|Images.meta|.|..)'
1215
jobs:
1316
split-upm:
1417
name: Create upm package branch (force)
@@ -31,7 +34,7 @@ jobs:
3134
run: |
3235
git checkout --orphan "$PKG_BRANCH"
3336
shopt -s extglob dotglob
34-
rm -rf !(Packages|.github|.git|README.md|README.md.meta|LICENSE|LICENSE.meta|.|..)
37+
rm -rf $EXCLUDE_REMOVE_FILES
3538
ls -la ./
3639
- name: Move ./Packages content to root
3740
run: ./.github/scripts/functions.sh movePackagesFolder

Images.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Images/Icons.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Images/Icons/android-icon.png

540 Bytes
Loading

Images/Icons/android-icon.png.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Images/Icons/ios-icon.png

677 Bytes
Loading

Images/Icons/ios-icon.png.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Images/Icons/webgl-icon.png

1.84 KB
Loading

Images/Icons/webgl-icon.png.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)