Skip to content

Commit a40d045

Browse files
authored
Merge pull request #31 from ichizok/fix/get-latest-tags
Fix `latest-tags` step
2 parents a922fa6 + 8f2d161 commit a40d045

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ jobs:
1313
updated: ${{ steps.check-updates.outputs.updated }}
1414

1515
steps:
16+
- name: Set up param
17+
id: param
18+
run: awk -F/ '{print"::set-output name=owner::"$1"\n::set-output name=repo::"$2}' <<< "${{ github.repository }}"
19+
1620
- name: Get latest tags
1721
id: latest-tags
1822
uses: octokit/[email protected]
1923
env:
2024
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2125
with:
2226
query: |
23-
query latestTags($owner:String!,$repo:String!) {
27+
query($owner:String!,$repo:String!) {
2428
appimage: repository(owner:$owner, name:$repo) {
2529
refs(refPrefix:"refs/tags/", last:1) {
2630
edges {
@@ -40,8 +44,8 @@ jobs:
4044
}
4145
}
4246
}
43-
owner: ${{ github.event.repository.owner.login }}
44-
repo: ${{ github.event.repository.name }}
47+
owner: ${{ steps.param.outputs.owner }}
48+
repo: ${{ steps.param.outputs.repo }}
4549

4650
- name: Check updates
4751
id: check-updates
@@ -122,8 +126,8 @@ jobs:
122126
vim_summary=$(git submodule summary vim)
123127
workflow_url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}
124128
125-
git config --local user.name "${GITHUB_ACTOR}"
126-
git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
129+
git config --local user.name "github-actions[bot]"
130+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
127131
git remote set-url origin "https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}"
128132
git commit -m "Vim: ${tag_name}" -m "${vim_summary}" -m "${workflow_url}" vim
129133
git tag -f "${tag_name}" -m "Vim: ${tag_name}"

0 commit comments

Comments
 (0)