Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/acceptance-test.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 'Acceptance'
on:
push:
# ... only act on pushes to master
# ... only act on pushes to main
branches:
- master
- main
# ... do not act on release tags
tags-ignore:
- v*
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Release'
on:
push:
# take no actions on push...
# take no actions on push to any branch...
branches-ignore:
- '**'
# ... only act on release tags
Expand All @@ -16,12 +16,12 @@ jobs:

- uses: actions/checkout@v2

# we don't want to release commits that have been pushed and tagged, but not necessarily merged onto master
- name: Ensure tagged commit is on master
# we don't want to release commits that have been pushed and tagged, but not necessarily merged onto main
- name: Ensure tagged commit is on main
run: |
echo "Tag: ${GITHUB_REF##*/}"
git fetch origin master
git merge-base --is-ancestor ${GITHUB_REF##*/} origin/master && echo "${GITHUB_REF##*/} is a commit on master!"
git fetch origin main
git merge-base --is-ancestor ${GITHUB_REF##*/} origin/main && echo "${GITHUB_REF##*/} is a commit on main!"

- name: Check static anaylysis, unit, and integration test results
uses: fountainhead/[email protected]
Expand Down