Skip to content

Upgrade to actions/checkout@v3 #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ to attach bundles to the releases. It takes the following arguments:

* ``github-token``: A valid GitHub token with authorization scope to upload the file
to the release
* ``upload-url`` The upload URL where the release assets can be uploaded; should be
that of the release

It can be invoked using:

Expand All @@ -54,6 +56,7 @@ It can be invoked using:
uses: adafruit/workflows-circuitpython-libs/release-gh@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
upload-url: ${{ github.event.release.upload_url }}

PyPI Release CI
---------------
Expand Down
4 changes: 2 additions & 2 deletions build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ runs:
run: |
python3 --version
- name: Checkout Current Repo
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout tools repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: adafruit/actions-ci-circuitpython-libs
path: actions-ci
Expand Down
20 changes: 9 additions & 11 deletions release-gh/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
github-token:
description: 'A GitHub token (required to upload to the release)'
required: true
upload-url:
description: 'The release upload URL for the asset'
required: true
runs:
using: "composite"
steps:
Expand All @@ -29,11 +32,11 @@ runs:
run: |
python3 --version
- name: Checkout Current Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout tools repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: adafruit/actions-ci-circuitpython-libs
path: actions-ci
Expand All @@ -45,13 +48,8 @@ runs:
shell: bash
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
- name: Upload Release Assets
# the 'official' actions version does not yet support dynamically
# supplying asset names to upload. @csexton's version chosen based on
# discussion in the issue below, as its the simplest to implement and
# allows for selecting files with a pattern.
# https://github.com/actions/upload-release-asset/issues/4
#uses: actiont actionss/[email protected]
uses: csexton/release-asset-action@master
uses: shogo82148/actions-upload-release-asset@v1
with:
pattern: "bundles/*"
github-token: ${{ inputs.github-token }}
asset_path: "bundles/*"
github_token: ${{ inputs.github-token }}
upload_url: ${{ inputs.upload-url }}
2 changes: 1 addition & 1 deletion release-pypi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Check For pyproject.toml
id: need-pypi
shell: bash
Expand Down