Skip to content

chore: update Python dependencies (#31) #126

chore: update Python dependencies (#31)

chore: update Python dependencies (#31) #126

name: GitHub Actions Demo
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
maturity:
description: Maturity level of the package
required: true
default: 'release'
type: choice
options:
- ALL
- hotfix
- snapshot
- testing
- release
env:
WORKFLOW_SECRET: 123456
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
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
with:
lfs: true
- 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: Set PEM Version
run: |
echo "PEM_VERSION=8.5.0" >> $GITHUB_ENV
echo "RELEASE_VERSION=1" >> $GITHUB_ENV
echo "$GITHUB_RUN_ID"
echo "$GITHUB_RUN_NUMBER"
echo "$GITHUB_WORKFLOW"
echo "$GITHUB_PATH"
ls -al $GITHUB_PATH || true
- name: Check folder
run: |
pwd
ls -al
cd docker
ls -al
- name: composite job 1
uses: ./actions/composite
with:
who-to-greet: x86_64
- name: composite job 2
uses: ./actions/composite
with:
who-to-greet: ppc64le
- name: disable step testing
run: |
echo "I am a testing step"
ls -l
md5sum image.png || true
echo "${{ inputs.maturity }}"
echo "${{ inputs.maturity.default }}"
- name: Get maturity
id: get-maturity
uses: ./actions/get/maturity
with:
maturity: ${{ inputs.maturity }}
- name: List files in the repository
run: |
pwd
whoami
mkdir -p builds.edb/debian/x86_64/
ls ${{ github.workspace }} | tee builds.edb/debian/x86_64/edb-pem-files1-deb11_amd64.txt
ls ${{github.workspace}} | tee builds.edb/debian/x86_64/edb-pem-files2-deb11_amd64.txt
- name: Upload packages to artifactory
uses: actions/upload-artifact@v3
with:
name: files
path: builds.edb/debian/x86_64/edb-pem*deb11_amd64.txt
- run: echo "🍏 This job's status is ${{ job.status }}."
Test-GitHub-Actions:
if: ${{ false }} # disable for now
needs: [ Explore-GitHub-Actions ]
runs-on: ubuntu-latest
steps:
- run: echo "πŸŽ‰ The job was automatically run after Explore-GitHub-Actions"
- name: disable step testing
if: ${{ false }} # disable for now
run: |
echo "I am a testing step"
Branch-Specific-GitHub-Actions:
if: ${{ github.ref != 'refs/heads/master' }}
needs: [ Explore-GitHub-Actions ]
runs-on: ubuntu-latest
steps:
- run: echo "πŸŽ‰ The job is branch specific"
- name: step testing
run: |
echo "I am a testing step on non-master branch"
Trigger-another-workflow:
needs: [ Explore-GitHub-Actions ]
runs-on: ubuntu-latest
steps:
- name: step testing
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
https://api.github.com/repos/edbjunwang/java-sample-app/actions/workflows/boolean-demo.yaml/dispatches \
-d '{"ref":"master","inputs":{"foo":"true"}}'