Skip to content

Commit

Permalink
WIP: Workflow update: Push changes only on PR and added ref to checko…
Browse files Browse the repository at this point in the history
…ut to avoid detached state
  • Loading branch information
adnanbrq committed Jul 20, 2024
1 parent fe6a164 commit 4a4c2bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Set up Go
uses: actions/setup-go@v4
Expand All @@ -38,7 +40,8 @@ jobs:
BADGE="[![Coverage](https://img.shields.io/badge/Coverage-${COVERAGE}-brightgreen)](./coverage.out)"
sed -i "1 s|.*|${BADGE}|" README.md
- name: Push README changes
- name: Push README changes (PR Only)
if: ${{ github.event_name == 'pull_request' }}
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand Down

0 comments on commit 4a4c2bd

Please sign in to comment.