02 - Secret Workflow #638
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: 02 - Secret Workflow | |
on: | |
schedule: | |
- cron: "0 1 * * MON-FRI" # Runs at 01:00 UTC | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Commands with Secret | |
env: | |
SECRET_VALUE: ${{ secrets.SECRET_VALUE }} | |
run: | | |
echo "Hello World" | |
echo "This is a secret value: $SECRET_VALUE" | |
- name: Clone GuillaumeFalourd/formulas-training PRIVATE repository | |
uses: GuillaumeFalourd/clone-github-repo-action@main | |
with: | |
owner: 'GuillaumeFalourd' | |
repository: 'formulas-training' | |
access-token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Access cloned repository content | |
run: | | |
echo "ROOT" | |
ls -l | |
echo "CLONED REPO" | |
cd formulas-training | |
ls -l |