Skip to content

Commit 4168fe3

Browse files
committed
ci: update build config
1 parent b90fcb9 commit 4168fe3

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/build.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,21 @@ jobs:
614614
needs:
615615
- native-image
616616
if: ${{ (github.ref_name == 'main' || github.ref_name == 'release') && !github.event.act }}
617+
concurrency: publish-${{ github.ref_name }}-release # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idconcurrency
617618

618619
steps:
620+
- name: "Show: GitHub context"
621+
env:
622+
GITHUB_CONTEXT: ${{ toJSON(github) }}
623+
run: echo $GITHUB_CONTEXT
624+
625+
626+
- name: "Show: environment variables"
627+
run: env | sort
628+
629+
619630
- name: Git Checkout
620-
# only required by "hub release create" to prevent "fatal: Not a git repository"
631+
# only required by "gh release create" to prevent "fatal: Not a git repository"
621632
uses: actions/checkout@v4 # https://github.com/actions/checkout
622633

623634

@@ -649,6 +660,7 @@ jobs:
649660
run: |
650661
GH_DEBUG=1 gh release delete "$RELEASE_NAME" --yes --cleanup-tag || true
651662
663+
652664
- name: "Create '${{ steps.release.outputs.name }}' Release"
653665
env:
654666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -671,6 +683,7 @@ jobs:
671683
artifacts/copycat-windows-amd64.exe#copycat-$RELEASE_NAME-windows-amd64.exe \
672684
artifacts/copycat-windows-amd64-upx.exe#copycat-$RELEASE_NAME-windows-amd64-upx.exe
673685
686+
674687
- name: "Delete intermediate build artifacts"
675688
uses: geekyeggo/delete-artifact@v5 # https://github.com/GeekyEggo/delete-artifact/
676689
with:

.github/workflows/stale.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ name: Stale issues
33

44
on:
55
schedule:
6-
- cron: '0 16 * * 1'
6+
- cron: '0 15 1,15 * *'
77
workflow_dispatch:
88
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
99

1010
permissions:
11-
contents: write # only for delete-branch option
1211
issues: write
1312
pull-requests: write
1413

@@ -23,7 +22,6 @@ jobs:
2322
- name: Run stale action
2423
uses: actions/stale@v9 # https://github.com/actions/stale
2524
with:
26-
repo-token: ${{ secrets.GITHUB_TOKEN }}
2725
days-before-stale: 90
2826
days-before-close: 14
2927
stale-issue-message: >
@@ -38,10 +36,9 @@ jobs:
3836
pinned
3937
security
4038
41-
- name: Run stale action
39+
- name: Run stale action (for enhancements)
4240
uses: actions/stale@v9 # https://github.com/actions/stale
4341
with:
44-
repo-token: ${{ secrets.GITHUB_TOKEN }}
4542
days-before-stale: 360
4643
days-before-close: 14
4744
stale-issue-message: >

0 commit comments

Comments
 (0)