forked from hyperledger/aries-vcx
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.41 KB
/
run-script.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Update Datetime File
on:
push:
branches:
- abhishek_GithubAction
jobs:
update-datetime:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python (optional, only if needed for your setup)
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Dependencies
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install pkg-config libsodium openssl zeromq just jq
- name: Set up Rust
run: |
rustc --version
rustup default 1.78.0
rustc --version
- name: Run the script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
TAG: ${{ github.ref_name }}
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
if [[ "$COMMIT_MESSAGE" == *"RunAction"* ]]; then
echo "Commit message contains 'RunAction'."
chmod +x ./aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh
./aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh
chmod +x ./create_datetime_file.sh
./create_datetime_file.sh
else
echo "Commit message does not contain 'RunAction'."
exit 0
fi