diff --git a/.github/workflows/work1.yml b/.github/workflows/work1.yml new file mode 100644 index 0000000..d78a300 --- /dev/null +++ b/.github/workflows/work1.yml @@ -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 diff --git a/.github/workflows/work2.yml b/.github/workflows/work2.yml new file mode 100644 index 0000000..eae0992 --- /dev/null +++ b/.github/workflows/work2.yml @@ -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