august-setel is testing out GitHub Actions π #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |