Skip to content

Commit

Permalink
Update 00-firstworkflow.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Silabs-ThieuVu authored Nov 29, 2024
1 parent adf715b commit 6a36719
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/00-firstworkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
ENV_VAR2: "abcd"
ENV_VAR3: ${{ github.event.inputs.input1 }}
ENV_VAR4: ${{ github.event.inputs.input2 }}

REPO_NAME1: ${{ github.repository }}
REPO_NAME2: ${GITHUB_REPOSITORY}
steps:
- name: Trigger
run: echo "Triggered by ${{ github.event_name }} event"
Expand Down Expand Up @@ -87,9 +88,12 @@ jobs:
- name: Log Current Branch and Commit
run: |
echo ${GITHUB_REPOSITORY##*/}
echo ${{ github.event.repository.name }}
echo ${{ github.repository }}
echo ${${{ github.repository }}##*/}
echo "REPO_NAME1=$REPO_NAME1"
echo "REPO_NAME2=$REPO_NAME2"
REPO_NAME1=${REPO_NAME1##*/}
REPO_NAME1=${REPO_NAME1##*/}
echo "REPO_NAME1=$REPO_NAME1"
echo "REPO_NAME2=$REPO_NAME2"
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
echo "Current commit: $(git rev-parse HEAD)"
Expand Down

0 comments on commit 6a36719

Please sign in to comment.