Skip to content

Commit

Permalink
#2 : Try and run python code
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hynes committed Jan 30, 2023
1 parent 00c50f2 commit 6cd06ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Set Python Version
uses: actions/setup-python@v4
with:
python-version: '3.10'
run: python extract-vars.py

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
Expand Down
6 changes: 6 additions & 0 deletions extract-vars.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)

logging.info(os.environ['GITHUB_REF'])

0 comments on commit 6cd06ac

Please sign in to comment.