Skip to content

Another test to see directory names. #19

Another test to see directory names.

Another test to see directory names. #19

Workflow file for this run

name: hello-world
on: push
jobs:
hello-world-job:
name: Random action
runs-on: ubuntu-latest
steps:
- name: Check original working directory
shell: bash
run: |
echo "$(pwd)"
- name: Create some random file
shell: bash
run: |
echo "random text." > randomtext.txt
echo "$(pwd)"
- name: Check out repository code
uses: actions/checkout@v4
- name: Find show directory layout
run: |
echo "$(ls -lA /home/runner)"
echo "$(ls -lA /home/runner/work/ci_cd/ci_cd)"
# - name: Copy randomtext.txt into some location in repo
# shell: bash
# run:
# name: hello-world
# on: push
# jobs:
# upload-sample-file:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Install Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.13'
# - name: Install dependencies
# run: pip install -r requirements.txt
# - name: Run script
# working-directory: ./src
# run: python create_file.py
# - name: Upload sample file
# uses: actions/upload-artifact@v4
# with:
# name: sample-file
# #working-directory: ./src
# path: src/sample_file.txt
# #path: ./output_files/sample_file.txt