Skip to content

Commit

Permalink
Merge pull request #292 from carpentries/workflow-update-reporting
Browse files Browse the repository at this point in the history
update workflows; bump version; bump news
  • Loading branch information
zkamvar authored May 27, 2022
2 parents f523a87 + 876893d commit d313fef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 33 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: sandpaper
Title: Create and Curate Carpentries Lessons
Version: 0.5.6
Version: 0.5.7
Authors@R: c(
person(given = "Zhian N.",
family = "Kamvar",
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# sandpaper 0.5.7

CONTINUOUS INTEGRATION
----------------------

* Workflows that update lesson elements will now report a more obvious summary
of next steps to take with an invalid token (see https://github.com/carpentries/actions/pull/45)

# sandpaper 0.5.6

CONTINUOUS INTEGRATION
Expand Down
17 changes: 0 additions & 17 deletions inst/workflows/update-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,6 @@ jobs:
with:
token: ${{ secrets.SANDPAPER_WORKFLOW }}

bad_token:
name: "Invalid/Missing Token"
runs-on: ubuntu-latest
needs: check_token
if: ${{ needs.check_token.outputs.workflow != 'true' }}
steps:
- name: "Instructions to create a new token"
run: |
printf "::warning::The SANDPAPER_WORKFLOW secret is missing, invalid, "\
"or does not have the right scope to update the package cache.\n"\
"If you want to have automated pull request updates to your package cache, "\
"you will need to generate a new token by visiting "\
"https://github.com/settings/tokens/new?scopes=repo,workflow&description=Sandpaper%%20Token%%20%%28${{ github.repository }}%%29\n"\
"Once you have created the token, copy it to your clipboard and go to "\
"https://github.com/${{ github.repository }}/settings/secrets/actions/new "\
"and enter SANDPAPER_WORKFLOW for the 'Name' and paste your key for the 'Value'."
update_cache:
name: "Update Package Cache"
needs: check_token
Expand Down
15 changes: 0 additions & 15 deletions inst/workflows/update-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,6 @@ jobs:
with:
token: ${{ secrets.SANDPAPER_WORKFLOW }}

bad_token:
name: "Invalid/Missing Token"
runs-on: ubuntu-latest
needs: check_token
if: ${{ needs.check_token.outputs.workflow != 'true' }}
steps:
- name: "Instructions to create a new token"
run: |
printf "::warning::The SANDPAPER_WORKFLOW token workflow scope is not valid\n"\
"If you want to have periodic pull request updates, you will need to generate a new token by going to "\
"https://github.com/settings/tokens/new?scopes=repo,workflow&description=Sandpaper%%20Token%%20%%28${{ github.repository }}%%29\n"\
"Once you have created the token, copy it to your clipboard and go to "\
"https://github.com/${{ github.repository }}/settings/secrets/actions/new "\
"and enter SANDPAPER_WORKFLOW for the 'Name' and paste your key for the 'Value'."
update_workflow:
name: "Update Workflow"
runs-on: ubuntu-latest
Expand Down

0 comments on commit d313fef

Please sign in to comment.