mirror of https://github.com/PCSX2/pcsx2.git
ci: announce release after it's published
It's no longer working because workflows will not implicitly trigger from another workflow when initiated by the default token. You must explicitly call them via a `workflow_dispatch` or use a distinct PAT. The announce workflow isn't really used anywhere else so simplifying and consolidating the steps feels appropriate.
This commit is contained in:
parent
7ac224adf3
commit
a1727a2ac7
.github/workflows
|
@ -1,24 +0,0 @@
|
||||||
name: 📢 Announce Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
announce:
|
|
||||||
if: github.repository == 'PCSX2/pcsx2'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
|
|
||||||
- name: Announce Release
|
|
||||||
env:
|
|
||||||
DISCORD_BUILD_WEBHOOK: ${{ secrets.DISCORD_BUILD_WEBHOOK }}
|
|
||||||
run: |
|
|
||||||
cd ./.github/workflows/scripts/releases/announce-release
|
|
||||||
npm ci
|
|
||||||
node index.js
|
|
|
@ -184,3 +184,15 @@ jobs:
|
||||||
TAG_VAL=$(git tag --points-at HEAD)
|
TAG_VAL=$(git tag --points-at HEAD)
|
||||||
echo "TAG_VAL=${TAG_VAL}"
|
echo "TAG_VAL=${TAG_VAL}"
|
||||||
gh release edit ${TAG_VAL} --draft=false --repo PCSX2/pcsx2
|
gh release edit ${TAG_VAL} --draft=false --repo PCSX2/pcsx2
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Announce Release
|
||||||
|
env:
|
||||||
|
DISCORD_BUILD_WEBHOOK: ${{ secrets.DISCORD_BUILD_WEBHOOK }}
|
||||||
|
run: |
|
||||||
|
cd ./.github/workflows/scripts/releases/announce-release
|
||||||
|
npm ci
|
||||||
|
node index.js
|
||||||
|
|
Loading…
Reference in New Issue