diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6eb0cda..b736c94 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,5 @@ --- -# This action is centrally managed in https://github.com//.github/ +# This file is centrally managed in https://github.com//.github/ # Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in # the above-mentioned repo. diff --git a/.github/label-actions.yml b/.github/label-actions.yml index 2949601..653cf86 100644 --- a/.github/label-actions.yml +++ b/.github/label-actions.yml @@ -1,5 +1,5 @@ --- -# This action is centrally managed in https://github.com//.github/ +# This file is centrally managed in https://github.com//.github/ # Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in # the above-mentioned repo. diff --git a/.github/workflows/issues-stale.yml b/.github/workflows/issues-stale.yml deleted file mode 100644 index deb3d74..0000000 --- a/.github/workflows/issues-stale.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -# This action is centrally managed in https://github.com//.github/ -# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in -# the above-mentioned repo. - -# Manage stale issues and PRs. - -name: Stale Issues / PRs - -on: - schedule: - - cron: '00 10 * * *' - -jobs: - stale: - name: Check Stale Issues / PRs - if: startsWith(github.repository, 'LizardByte/') - runs-on: ubuntu-latest - steps: - - name: Stale - uses: actions/stale@v9 - with: - close-issue-message: > - This issue was closed because it has been stalled for 10 days with no activity. - close-pr-message: > - This PR was closed because it has been stalled for 10 days with no activity. - days-before-stale: 90 - days-before-close: 10 - exempt-all-assignees: true - exempt-issue-labels: 'added,fixed' - exempt-pr-labels: 'dependencies,l10n' - stale-issue-label: 'stale' - stale-issue-message: > - It seems this issue hasn't had any activity in the past 90 days. - If it's still something you'd like addressed, please let us know by leaving a comment. - Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks! - stale-pr-label: 'stale' - stale-pr-message: > - It looks like this PR has been idle for 90 days. - If it's still something you're working on or would like to pursue, - please leave a comment or update your branch. - Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks! - repo-token: ${{ secrets.GH_BOT_TOKEN }} - - - name: Invalid Template - uses: actions/stale@v9 - with: - close-issue-message: > - This issue was closed because the the template was not completed after 5 days. - close-pr-message: > - This PR was closed because the the template was not completed after 5 days. - days-before-stale: 0 - days-before-close: 5 - only-labels: 'invalid:template-incomplete' - stale-issue-label: 'invalid:template-incomplete' - stale-issue-message: > - Invalid issues template. - stale-pr-label: 'invalid:template-incomplete' - stale-pr-message: > - Invalid PR template. - repo-token: ${{ secrets.GH_BOT_TOKEN }} diff --git a/.github/workflows/release-notifier.yml b/.github/workflows/release-notifier.yml index 9e44225..2d1e632 100644 --- a/.github/workflows/release-notifier.yml +++ b/.github/workflows/release-notifier.yml @@ -19,7 +19,7 @@ jobs: !github.event.release.prerelease && !github.event.release.draft outputs: - simplified_body: ${{ steps.output.outputs.simplified_body }} + SIMPLIFIED_BODY: ${{ steps.output.outputs.SIMPLIFIED_BODY }} runs-on: ubuntu-latest steps: - name: remove contributors section @@ -30,7 +30,11 @@ jobs: echo "${RELEASE_BODY}" > ./release_body.md modified_body=$(sed '/^---$/d; /^## Contributors$/,/<\/a>/d' ./release_body.md) echo "modified_body: ${modified_body}" - echo "simplified_body=${modified_body}" >> $GITHUB_OUTPUT + + # use a heredoc to ensure the output is multiline + echo "SIMPLIFIED_BODY<> $GITHUB_OUTPUT + echo "${modified_body}" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT discord: if: >- @@ -45,7 +49,7 @@ jobs: with: avatar_url: ${{ secrets.ORG_LOGO_URL }} color: 0x00ff00 - description: ${{ needs.simplified_changelog.outputs.simplified_body }} + description: ${{ needs.simplified_changelog.outputs.SIMPLIFIED_BODY }} nodetail: true nofail: false title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released @@ -104,7 +108,7 @@ jobs: title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released url: ${{ github.event.release.html_url }} flair-id: ${{ secrets.REDDIT_FLAIR_ID }} # https://www.reddit.com/r/>/api/link_flair.json - comment: ${{ needs.simplified_changelog.outputs.simplified_body }} + comment: ${{ needs.simplified_changelog.outputs.SIMPLIFIED_BODY }} x: if: >-