Skip to content

Commit

Permalink
adjust workflow to include dynamic variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alisha-k-kalladassery committed Dec 5, 2024
1 parent d28ade7 commit 8e5a6bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/first-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ jobs:
say-hello:
runs-on: ubuntu-latest
steps:
- name: Get repository name and date
run: |
echo "REPO_NAME=${{ github.repository }}" >> $GITHUB_ENV
echo "CURRENT_DATE=$(date + '%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Print ${GREETING_MESSAGE}
run: echo "${GREETING_MESSAGE}"
run: echo "${GREETING_MESSAGE} from ${{ env.REPO_NAME }} at ${{ env.CURRENT_DATE }}"
say-goodbye:
needs: say-hello
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8e5a6bc

Please sign in to comment.