env variables #11
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: CI/CD Pipeline | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
initial-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run script file | |
run: | | |
env | |
echo "${{toJSON(github.event)}}" | |
shell: bash | |
pre-feature-pipeline: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip3 install requests | |
- name: Run Python script | |
run: python3 pipeline/pipeline.py --step pre_feature_branch | |
env: | |
GH_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | |
GH_COMMIT_HASH: ${{ github.event.head_commit.id }} | |
GH_COMMIT_LINK_URL: ${{ github.event.head_commit.url }} | |
GH_FULL_NAME: ${{ github.repository.full_name }} | |
GH_PROJECT_URL: ${{ github.repository.html_url }} |