Test dependent workflows: needs #2
Workflow file for this run
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
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 |