Skip to content

Commit

Permalink
Update AutoRev release steps
Browse files Browse the repository at this point in the history
Using tips from the action's author to remove the problem file
  • Loading branch information
jwrober authored and lmoureaux committed Sep 21, 2024
1 parent 9a92e3a commit 96ec811
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
- # Make sure there are no unstaged changes
# Was reporting changes to eol=crlf files in .gitattributes
run: git checkout -- .
- run: git status
- run: git stash
- run: git rev-parse --short=5 HEAD > cmake/AutoRevision.txt
- run: git describe --tags `git rev-list --tags --max-count=1` >> cmake/AutoRevision.txt
- run: cat cmake/AutoRevision.txt
Expand All @@ -28,8 +26,12 @@ jobs:
branch=$(git branch -r --contains HEAD --format '%(refname:strip=3)')
echo Target branch is $branch
echo branch=$branch >> $GITHUB_OUTPUT
- name: Problem file cleanup
# We have this problematic file that we need to remove
run: |
rm dist/freeciv21-server.cmd
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
base: ${{ steps.branch.outputs.branch }}
commit-message: "Release update of AutoRevision.txt"
Expand Down

0 comments on commit 96ec811

Please sign in to comment.