Skip to content

Commit

Permalink
test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rplus committed Sep 28, 2023
1 parent 5e85c7c commit 8ffbd12
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/github-actions-demo.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
env:
today: |
echo "$(date '+%F')"
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- name: set today
run: echo "TODAY=$(date '+%F')" >> $GITHUB_ENV
- name: set latset commit date as environment variable
run: "LATEST_COMMIT_DATE=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
- name: show latest date
run: |
echo "= today: ${{ TODAY }}"
echo "= latest commit date: ${{ env.LATEST_COMMIT_DATE }}"
# - name: Dynamically set latset commit date as environment variable
# run: echo "LATEST_DATE=$(git log -1 --format=%cd --date=format:%F)" >> $GITHUB_ENV
- name: show today
run: echo "today: ${{ env.today }}"
# - 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 }}."
Expand Down

0 comments on commit 8ffbd12

Please sign in to comment.