Skip to content

[patch] Write a workflow that runs tests on the latest conda release #1

[patch] Write a workflow that runs tests on the latest conda release

[patch] Write a workflow that runs tests on the latest conda release #1

name: Experiment with Syntax
on:
pull_request:
jobs:
experiment:
runs-on: ubuntu-latest
outputs:
latest_release_tag: ${{ steps.get-release.outputs.latest_release_tag }}
steps:
# - name: Checkout code
# uses: actions/checkout@v4
- name: Use GitHub Script to get latest release
id: get-release
uses: actions/github-script@v4
with:
script: |
const response = await github.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
});
console.log(response.data.tag_name);
return { latest_release_tag: response.data.tag_name }
- name: Echo latest release tag
run: |
echo "Latest release tag: ${{ steps.get-release.outputs.latest_release_tag }}"