From cd8dba2296ccb6e9e46a799df40eeac6f3347073 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Thu, 17 Dec 2020 16:02:00 -0500 Subject: [PATCH] workflow update: apply again the release workflow authentication changes, and undo the previous revert --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 486df32..a63f797 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,7 @@ jobs: repository: sot/skare3_tools ref: master path: skare3_tools - - uses: sot/setup-miniconda@v1 + - uses: sot/setup-miniconda@v2 with: miniconda-version: "py38_4.8.3" python-version: "3.8" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..be5aa03 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release +on: + release: + types: + - released + +jobs: + patch-release: + runs-on: ubuntu-latest + name: Patch Release + steps: + - name: Fetch Skare3 Tools + uses: actions/checkout@v2 + with: + repository: sot/skare3_tools + ref: master + path: skare3_tools + - name: Release Description and Skare3 Issue + run: | + sudo -H pip3 install setuptools wheel + sudo -H pip3 install -r ./skare3_tools/requirements.txt + sudo -H pip3 install ./skare3_tools + skare3-release-merge-info --repository $GITHUB_REPOSITORY --sha $GITHUB_SHA + skare3-create-issue --repository sot/skare3 --latest-release $GITHUB_REPOSITORY --label 'Package update' + env: + GITHUB_API_TOKEN: ${{ secrets.SKARE3_CI_API_TOKEN }}