Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brightspace/assert-git-remote-ref-action
Github action to assert the current branch against a remote ref.
https://github.com/brightspace/assert-git-remote-ref-action
Last synced: 5 days ago
JSON representation
Github action to assert the current branch against a remote ref.
- Host: GitHub
- URL: https://github.com/brightspace/assert-git-remote-ref-action
- Owner: Brightspace
- License: mit
- Created: 2020-10-29T22:38:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-09T20:40:02.000Z (9 months ago)
- Last Synced: 2024-10-14T01:47:10.462Z (about 1 month ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# assert-git-remote-ref-action
Github action to assert that HEAD (of current branch) is at the same commit as the specified remote ref.
## Usage
```
- name: Assert Git Remote Ref
uses: Brightspace/assert-git-remote-ref-action@main
with:
remote: origin
ref: main
```### Output
```
> git fetch --verbose origin master
POST git-upload-pack (284 bytes)
From https://github.com/Brightspace/assert-git-remote-ref-action
* branch master -> FETCH_HEAD
= [up to date] master -> origin/master> git show-ref --hash --verify HEAD
3d3eb72a0787c36d78bb03336a5bc438c8d0de50> git show-ref --hash --verify refs/remotes/origin/master
3d3eb72a0787c36d78bb03336a5bc438c8d0de50HEAD == refs/remotes/origin/master
```