diff --git a/actions/dropbox/README.md b/actions/dropbox/README.md index 20a7732..992ccea 100644 --- a/actions/dropbox/README.md +++ b/actions/dropbox/README.md @@ -9,7 +9,11 @@ jobs: steps: - uses: paddyroddy/.github/actions/dropbox@vx.y.z with: + configfile-version: ${{ secrets.CONFIGFILE_VERSION }} files-to-upload: example.pdf + oauth-app-key: ${{ secrets.OAUTH_APP_KEY }} + oauth-app-secret: ${{ secrets.OAUTH_APP_SECRET }} + oauth-refresh-token: ${{ secrets.OAUTH_REFRESH_TOKEN }} ``` where `x.y.z` is the `major.minor.patch` version of the action. diff --git a/actions/dropbox/actions.yml b/actions/dropbox/actions.yml index 9d332d8..32a202b 100644 --- a/actions/dropbox/actions.yml +++ b/actions/dropbox/actions.yml @@ -2,10 +2,26 @@ name: Dropbox description: Upload files to Dropbox inputs: + configfile-version: + description: Dropbox app config version + required: true + files-to-upload: description: A list of files to upload to dropbox required: true + oauth-app-key: + description: Dropbox app OAuth key + required: true + + oauth-app-secret: + description: Dropbox app OAuth secret + required: true + + oauth-refresh-token: + description: Dropbox app OAuth refresh token + required: true + runs: using: composite steps: @@ -19,10 +35,10 @@ runs: echo "OAUTH_APP_SECRET=$OAUTH_APP_SECRET" >> ~/.dropbox_uploader echo "OAUTH_REFRESH_TOKEN=$OAUTH_REFRESH_TOKEN" >> ~/.dropbox_uploader env: - CONFIGFILE_VERSION: ${{secrets.CONFIGFILE_VERSION}} - OAUTH_APP_KEY: ${{secrets.OAUTH_APP_KEY}} - OAUTH_APP_SECRET: ${{secrets.OAUTH_APP_SECRET}} - OAUTH_REFRESH_TOKEN: ${{secrets.OAUTH_REFRESH_TOKEN}} + CONFIGFILE_VERSION: ${{inputs.configfile-version }} + OAUTH_APP_KEY: ${{ inputs.oauth-app-key }} + OAUTH_APP_SECRET: ${{ inputs.oauth-app-secret }} + OAUTH_REFRESH_TOKEN: ${{ inputs.oauth-refresh-token }} - name: Retrieve Dropbox uploader script run: | diff --git a/actions/latex/vale/README.md b/actions/latex/vale/README.md index aa29d21..4f710c7 100644 --- a/actions/latex/vale/README.md +++ b/actions/latex/vale/README.md @@ -8,6 +8,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: paddyroddy/.github/actions/latex/vale@vx.y.z + with: + github-token: ${{ secrets.GITHUB_SECRET }} ``` where `x.y.z` is the `major.minor.patch` version of the action. If flags are @@ -20,5 +22,6 @@ jobs: steps: - uses: paddyroddy/.github/actions/latex/vale@vx.y.z with: + github-token: ${{ secrets.GITHUB_SECRET }} vale-flags: "" ``` diff --git a/actions/latex/vale/action.yml b/actions/latex/vale/action.yml index fd099cb..e1fc658 100644 --- a/actions/latex/vale/action.yml +++ b/actions/latex/vale/action.yml @@ -2,6 +2,10 @@ name: Vale description: Runs vale over all TeX files in the repo inputs: + github-token: + description: GitHub token + required: true + vale-flags: description: Flags to pass to vale default: "" @@ -15,7 +19,7 @@ runs: - name: Run Vale uses: errata-ai/vale-action@v2 env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ inputs.github-token }} with: fail_on_error: true filter_mode: nofilter