Skip to content

Commit

Permalink
Merge pull request #6 from ann8ty/test1
Browse files Browse the repository at this point in the history
Test1
  • Loading branch information
ann8ty authored Jan 19, 2024
2 parents 4d7349e + 4fbe942 commit d3ed03f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: version tag
name: 1 version

concurrency: version

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: sandbox example
run-name: sandbox ${{ github.ref_name }}
name: 2 on push tags

on:
push:
Expand All @@ -16,18 +15,11 @@ jobs:

steps:

- name: echo stuff
run: |
echo ${{ github.event.sender.login }}
- name: Checkout
id: checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get requirements changed files
uses: tj-actions/changed-files@v41
- uses: tj-actions/changed-files@v41
id: changed-requirements-file
with:
files: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: test workflow run changed files
run-name: test ${{ github.event.workflow_run.head_branch }}
name: 3 on workflow run

on:
workflow_run:
workflows: [sandbox example]
workflows: [2 on push tags]
types:
- completed

Expand All @@ -17,25 +16,12 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: echo stuff
run: |
echo ${{ github.event.workflow_run.head_branch }}
echo ${{ github.event.workflow_run.head_sha }}
echo ${{ github.event.sender.login }}
echo ${{ github.event.workflow_run.actor.login }}
echo ${{ github.event.workflow_run.triggering_actor.login }}
echo ${{ github.event.workflow_run.referenced_workflows.ref }}
- name: Checkout
id: checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_branch}}

- name: Get requirements changed files
uses: tj-actions/changed-files@v41
- uses: tj-actions/changed-files@v41
id: changed-requirements-file
with:
base_sha: ${{ github.event.workflow_run.head_sha }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
1. change dags/example.py
1. change requirements.txt
1. create branch, pr, merge
1. actions, version.yaml runs and creates a tag
1. actions, 1_version.yaml runs and creates a tag

0 comments on commit d3ed03f

Please sign in to comment.