-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) Β· 1.85 KB
/
commit-push.yml
File metadata and controls
50 lines (46 loc) Β· 1.85 KB
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
50
name: Every commit push
run-name: ${{ github.actor }} is testing out GitHub Actions π
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: [self-hosted, ARM64]
steps:
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "π₯οΈ The workflow is now ready to test your code on the runner."
- name: Cache modules
id: cache-module
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: new.txt
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('new.txt') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('new.txt') }}
- if: ${{ steps.cache-module.outputs.cache-hit != 'true' }}
name: Generate test.sh
continue-on-error: true
run: |
ls
./test.sh
echo "not here august"
ls
- name: Run fastlane
run: |
fastlane custom_lane
- run: |
echo ${{ vars.BUILD_NUMBER }}
echo "The job_id is: $GITHUB_JOB"
echo "The id of this action is: $GITHUB_ACTION"
echo "The run id is: $GITHUB_RUN_ID"
echo "The GitHub Actor's username is: $GITHUB_ACTOR"
echo "The GitHub Runner number: $GITHUB_RUN_NUMBER"
- name: List new content
run: |
cat new.txt