-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7189ba
commit a9627a0
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'work1' | ||
|
||
# Controls when the action will run | ||
on: | ||
push: | ||
branches: | ||
- '**' # '*' Matches zero or more characters, but does not match the `/` character. '**' matches zero or more of any character. | ||
- '!main' | ||
# Allows to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
job1: | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- name: 'w1-step1' | ||
run: | | ||
date '+%F %H:%M:%S' > time.txt | ||
echo '*** WRITTEN time: ' | ||
cat time.txt | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: time | ||
path: time.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'work1' | ||
|
||
# Controls when the action will run | ||
on: | ||
push: | ||
branches: | ||
- '**' # '*' Matches zero or more characters, but does not match the `/` character. '**' matches zero or more of any character. | ||
- '!main' | ||
# Allows to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
job1: | ||
runs-on: 'ubuntu-latest' | ||
needs: 'work1.job1' | ||
|
||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: time | ||
|
||
- name: 'w2-step2' | ||
run: | | ||
echo '*** READ time: ' | ||
cat time.txt |